muesli4 / table-layout

Layout data in grids and pretty tables. Provides a lot of tools to get the cell formatting right (positional alignment, alignment on specific characters and limiting of cell width)..
BSD 3-Clause "New" or "Revised" License
37 stars 11 forks source link

Word order backwards; examples are wrong #14

Closed hyperrealgopher closed 3 years ago

hyperrealgopher commented 3 years ago
> import Text.Layout.Table.Justify 
Text.Layout.Table.Justify> justifyText 10 "This text will not fit on one line."
["This","will  text","on fit not","line. one"]

This is the example from the docs. I am using version 0.9.0.1 and GHC version 8.8.4. It seems to have the reverse ordering of words.

muesli4 commented 3 years ago

This bug was introduced in e482677a4e2e9f019f95fc76337d53e01636a954. I will provide a fix today.

muesli4 commented 3 years ago

I released version 0.9.0.2 on hackage that contains the fix. Thanks for reporting the bug!