ofxTextSuite icon indicating copy to clipboard operation
ofxTextSuite copied to clipboard

Insert Line Break Method?

Open msf567 opened this issue 8 years ago • 4 comments

Hi!

I'm looking for a way to just add a line break to a block of text, however there is no such method in the header. I have tried writing my own by looking at the wrap text methods, but to no avail.

How would I go about forcing a newline in a textBlock object?

msf567 avatar Mar 07 '16 16:03 msf567

See this version, it also have a html tag format method. https://github.com/Vamoss/ofxTextSuite

Vamoss avatar Mar 07 '16 18:03 Vamoss

Sure, but how would I go about adding a line break with each occurrence of '\n' in the textblock's text member?

msf567 avatar Mar 07 '16 20:03 msf567

You are right, I did not pushed this feature. I will look for it tomorrow. Best!

Vamoss avatar Mar 07 '16 23:03 Vamoss

Just updated the break line functionality: https://github.com/Vamoss/ofxTextSuite/commit/d3f65c983672fe410234fa591abf1025aba4e4d8

The htmlExample show how to use. Best!

Vamoss avatar Mar 08 '16 15:03 Vamoss