Don't do padding for --raw-format
This commit is contained in:
parent
0c70feb09c
commit
c3ddeb27bc
@ -147,7 +147,7 @@ printListResult no_color raw lr = do
|
|||||||
lengths = fmap (maximum . fmap strWidth) cols
|
lengths = fmap (maximum . fmap strWidth) cols
|
||||||
padded = fmap (\xs -> zipWith padTo xs lengths) rows
|
padded = fmap (\xs -> zipWith padTo xs lengths) rows
|
||||||
|
|
||||||
forM_ padded $ \row -> putStrLn $ unwords row
|
forM_ (if raw then rows else padded) $ \row -> putStrLn $ unwords row
|
||||||
where
|
where
|
||||||
|
|
||||||
padTo str' x =
|
padTo str' x =
|
||||||
|
Loading…
Reference in New Issue
Block a user