Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is not new line in xw:note #158

Open
Danzal974 opened this issue Jun 11, 2016 · 2 comments
Open

There is not new line in xw:note #158

Danzal974 opened this issue Jun 11, 2016 · 2 comments

Comments

@Danzal974
Copy link

Danzal974 commented Jun 11, 2016

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
Copy link
Member

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:

xw:set-text "<html>first line<br/>second line<br/>...</html>"

@Danzal974
Copy link
Author

Thank you for your very helpful answer.

@Danzal974 Danzal974 changed the title There is not carriage return in xw:note There is not new line in xw:note Jun 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants