Page MenuHomeFeedback Tracker

GUI Editor import/export error when using quotes in control text field
New, WishlistPublic

Description

Cant import exported UI template in GUI Editor format because of quotes/apostrophe in the text field of RscStructuredText class control.
Exported GUI Editor entry is:

[1101,"st_mod_time_1",[2300,"<img image='Resources\icon_clock.paa' width=12 height=12/> 01:15:27",["21.5 * GUI_GRID_W","1 * GUI_GRID_H","4.5 * GUI_GRID_W","1 * GUI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],

When I'm trying to import:
11:15:00 Error in expression <1101,'st_mod_time_1',[2300,'<img image='Resources\icon_clock.paa' width=12 heigh>
11:15:00 Error position: <Resources\icon_clock.paa' width=12 heigh>
11:15:00 Error Missing ]

So I replaced ' to "" and UI template import had no errors in this case.
But I need to do this every time I want to import my template to GUI Editor after export.

The original text string in editor was:
<img image='Resources\icon_clock.paa' width=12 height=12/> 01:15:27

And if I change apostrophe to double quotes in editor text field - it will cause the same error when I will try to import template.

Seems that problem is in GUI_fnc_export function.

Details

Legacy ID
3369415221
Severity
None
Resolution
Open
Reproducibility
Always
Category
Editor
Steps To Reproduce
  1. Open GUI Editor
  2. Create StructuredText control
  3. Put this string inside the text field:

<img image='Resources\icon_clock.paa' width=12 height=12/> 01:15:27

  1. Export to GUI Editor format
  2. Import exported template to GUI Editor

Event Timeline

BlenderRus edited Additional Information. (Show Details)
BlenderRus set Category to Editor.
BlenderRus set Reproducibility to Always.
BlenderRus set Severity to None.
BlenderRus set Resolution to Open.
BlenderRus set Legacy ID to 3369415221.May 7 2016, 8:11 PM
Bohemia added a subscriber: Bohemia.May 7 2016, 8:11 PM

Maybe just stop using quote?