Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Text.Layout.Table.Justify
Contents
Description
Produce justified text, which is spread over multiple rows. For a simple
cut, chunksOf
from the split
package is best suited.
Text justification
justify :: Int -> [String] -> [String] Source #
Fits as many words on a line, depending on the given width. Every line, but the last one, gets equally filled with spaces between the words, as far as possible.