/WordWrapScala

A implementation of Word Wrap in Scala

Primary LanguageScala

WordWrapScala

##A implementation of Word Wrap in Scala

Wrap words for a given column. If wrapper function encounters a ' ' character and if the next word is above the number of column is greater than columns que word should be wrapped to next line

###Example:

"Um pequeno jabuti xereta viu dez cegonhas felizes."

will be wrapped like

"Um pequeno jabuti

xereta viu dez

cegonhas felizes."