CRESS-Surrey / eXtraWidgets

An extension for creating additional interface tabs in the NetLogo GUI and putting custom widgets on them.
MIT License
13 stars 4 forks source link

There is not new line in xw:note #158

Open Danzal974 opened 8 years ago

Danzal974 commented 8 years ago

Hello, I'm new user. I find the way to put a text with new line in xw:note. I don't found. When I create xw:note : xw:create-note "xwNoteDetails" [ xw:set-height 150 xw:set-width 300 xw:set-text "first line \nseconde line \n ..." ] The result is not what I was expected. I have one line of text, without "\n" : first line seconde line ..."

Edit : It is new line what I mean. Thank you for your understanding.

nicolaspayette commented 8 years ago

Thank for reporting this, @Danzal974 !

I don't have time to look into it closely right now, but in the meanwhile, you can get line breaks by using HTML in your note's text:

Danzal974 commented 8 years ago

Thank you for your very helpful answer.