WTextArea and CRLF
Added by Gamel Jones almost 13 years ago
Hi all,
I'm facing a quite simple problem but I don't know how to fix it.
I use a WTextArea to get information from the user.
When i look at the string I get, it seems the CR character is missing.
txtEdit->text().narrow();
Only the LF character is there !
Is there a way to to retrieve the string including this CR character ?
Thanks for your help
Gamel
Replies (2)
RE: WTextArea and CRLF - Added by Wim Dumon almost 13 years ago
Hello Gamel,
Wt always returns LF as newline character for WTextArea (one reason for us to do so is because of a bug in Internet explorer and text selection indices). If you want CRLF as newline character, you'll have to write a small conversion function yourself.
BR,
Wim.
RE: WTextArea and CRLF - Added by Gamel Jones almost 13 years ago
Hi !
I was expecting a Wt way, but I wrote, indeed, a function that perfectly does the job :)
Whatever, thanks for your answer.
Have a nice day.
Regards,
Gamel