Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: logic.cpp on April 17, 2013, 06:06:12 AM

Title: Line Breaks - Proper Handling
Post by: logic.cpp on April 17, 2013, 06:06:12 AM
tl;dr: '\' + 'n' == '\n'. Please fix.



An input field converts '\' followed by 'n' to a line break '\n'.
This works even in-game as the player types!

Can this be fixed so that player can type '\' followed by 'n' and it will render as the user would expect.
In code that should result in "\\n".

Thanks!
Title: Re: Line Breaks - Proper Handling
Post by: ArenMook on April 17, 2013, 12:47:22 PM
Hmm... that's a bug, thanks.
Title: Re: Line Breaks - Proper Handling
Post by: logic.cpp on April 18, 2013, 06:02:53 AM
Uh, actually - I should probably just turn off "Encoding" for an input, as you suggest here http://www.tasharen.com/?page_id=166
Title: Re: Line Breaks - Proper Handling
Post by: ArenMook on April 18, 2013, 05:51:34 PM
I was about to post that then tried it myself, and typing '\' followed by 'n' does create a new line. Not sure if it's due to my local changes that were a part of the upcoming version or not, but I've fixed it locally in any case.