Page 1 of 1
[SOLVED] Odd problem with "[" character
Posted: Thu Aug 04, 2011 01:24
by chaosavy
So in my project I have a tutorial that goes through key commands, one of them is basically this text "Press the [ key." but what gets pout in the text gui is this: "Press the Press the [ key." Its bizzare but the "[" character causes this duplication (if I change it to any other character it works fine). Any info? This is set from a text file, so its kind of bugging me. Worst case scenario I'll type it out.. press the left bracket key (but when I put in keymapping this will get all fudged up as well).
thanks for any info
Re: Odd problem with "[" character
Posted: Thu Aug 04, 2011 01:34
by ShadowTiger
have you tried putting a backslash in front of the bracket to escape it? My guess is that theres some regex or similar going on.
"Press the \[ key"
Re: Odd problem with "[" character
Posted: Thu Aug 04, 2011 10:41
by Kulik
There are 2 solutions to this, it's caused by the fact that [ is a special formatting character.
Either setTextParsing(false) or escaping. You only have to escape the starting [ character with a backslash as ShadowTiger said.
[SOLVED] Re: Odd problem with "[" character
Posted: Sun Aug 07, 2011 15:29
by chaosavy
Awesome thanks! I disabled the parsing and that did it.