Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

protected quote marks in strings doesn't strip out the backslash #246

Open Dunbaratu opened 10 years ago

Dunbaratu commented 10 years ago

It seems like the code to allow you to embed a quote mark in a quoted string is there, but it doesn't quite work right because it leaves the backslash in the string along with the quote mark.

For example, this:

print "He said, \"hello\", to the waiter.".
He said, \"hello\", to the waiter.

It successfully protects the quote mark, though.

NOTE: When you try this in the terminal window, the Commodore 64 font will display the backslashes as the British currency symbol. (That cursive-looking "L" thingy. I don't remember the key combo to type it on my US keyboard). Be aware of that when you test this. THAT isn't the problem. That's fine and is just an effect of the font in use.