given a sentence i would like to wrap the sentence at a specified line length. it should not split the words like "London" in "Lon" and "don". rather it should move the entire word into new line. if the word length is greater then line length then the word should stay on same line.
#example-1
- sentence = "i would like"
- line length = 4
i
would
like
#example-2
- sentence = "i would like"
- line length = 10
i would
like
#example-3
- sentence = "i would like to wrap"
- line length = 10
i would
like to
wrap