jtdaugherty / word-wrap

A Haskell library for wrapping long lines of text
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Fix bug where line was being wrapped after every word. #5

Closed callum-oakley closed 7 years ago

callum-oakley commented 7 years ago

0.3.3 was wrapping after every word because the general case was never reached. This is mostly a reorder.

jtdaugherty commented 7 years ago

That's kinda embarrassing. It means my test cases were much too simple. Thanks!