Don't do padding for --raw-format

This commit is contained in:
Julian Ospald 2022-03-17 21:08:03 +01:00
parent 8f9faaa39e
commit 84d01b1091
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -147,7 +147,7 @@ printListResult no_color raw lr = do
lengths = fmap (maximum . fmap strWidth) cols
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
padTo str' x =