Using "\n" in an attribute value gets escaped to "\\n" on save · Issue #1739 · TrenchBroom/TrenchBroom · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RC3.
The recent changes to escaping broke the basic use case of typing a message with newlines in it.
i.e. Create a trigger_once in TB, and type in a message key of "First line\nsecond line". Save.
It should appear in the map file as "message" "First line\nsecond line" but instead it's "message" "First line\\nsecond line"
The text was updated successfully, but these errors were encountered:
Aside from this case, my Quake compile tools recognize a \b escape sequence (which toggles orange text) and I'm expecting that mappers can type that in messages. At the same time, it shouldn't be something TB needs to know about / have support for.
Maybe it was a mistake to do automatic unescaping/escaping between the .map file and the text edit box in TB?
What about this:
support reading maps with \" occurring in key/values
if the user enters an un-escaped " character in TB's key/value editor, show an error or immediately convert it to \"
otherwise, present the keys/values to the user as-is, don't do any transformation between the string in the .map file and what's presented in the key/value editor
Just to add some data to this, interpreting \" as an escape sequence is not entirely historically sound, since it does break certain maps that have been made with the Radiant lineage of editors. In particular, when the backslash character is the last character in a value, for example:
RC3.
The recent changes to escaping broke the basic use case of typing a message with newlines in it.
i.e. Create a trigger_once in TB, and type in a message key of "First line\nsecond line". Save.
It should appear in the map file as
"message" "First line\nsecond line"
but instead it's"message" "First line\\nsecond line"
The text was updated successfully, but these errors were encountered: