eugeneloza / decoherence

Project moved to https://gitlab.com/EugeneLoza/decoherence
GNU General Public License v3.0
10 stars 7 forks source link

Break string at hyphen #466

Open eugeneloza opened 6 years ago

eugeneloza commented 6 years ago

At this point "most-interesting" would be considered a single word, because only space and linebreak are the words limits detected. In this case they are "deleted" after breaking the text into lines. So in case we use hyphen and other symbols as possible line-breaking point, it should not be deleted. i.e. not Copy(aString, LineStart, i_break - LineStart);, but Copy(aString, LineStart, i_break - LineStart + 1);

ResonantExplosion commented 6 years ago

Inclusive and non-inclusive break. However. I'm not sure how this should behave in case two sequential breaks are found. E.g. 'abc def' or 'this. Go' or other combination.