muesli4/table-layout

divide by zero exception

Closed this issue · 1 comments

Hi,

justifyText raises an divide by zero exception in the second of the following examples:

> Text.Layout.Table.justifyText 10 "frobnicate the bar library"
["frobnicate","the    bar","library"]
> Text.Layout.Table.justifyText 10 "library bar the frobnicate"
["*** Exception: divide by zero

Is this behaviour as it should be?

Thanks, the issue has been fixed.