ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
163 stars 34 forks source link

Textbox double quotes are not escaped in generated code #169

Closed LowPowerLab closed 3 years ago

LowPowerLab commented 3 years ago

For instance if you type word "quote" word in the Text attribute of a textbox, it will be generated as:

(char*)"word "quote" word",0,E_FREESANS9);

instead of:

(char*)"word \"quote\" word",0,E_FREESANS9);

And this will generate a compile error. This may be true of other generated Text attributes.

Pconti31 commented 3 years ago

@LowPowerLab Yes, It should be escaped. As a workaround you can do the escape yourself by typing in the text field including the backslash escape, so instead of entering "quote" use \"quote\" Paul--

Pconti31 commented 3 years ago

Fixed in 0.16.b011