Author Topic: Line Breaks - Proper Handling  (Read 2610 times)

logic.cpp

  • Guest
Line Breaks - Proper Handling
« 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!
« Last Edit: April 17, 2013, 06:30:52 AM by logic.cpp »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Line Breaks - Proper Handling
« Reply #1 on: April 17, 2013, 12:47:22 PM »
Hmm... that's a bug, thanks.

logic.cpp

  • Guest
Re: Line Breaks - Proper Handling
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Line Breaks - Proper Handling
« Reply #3 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.