pibakery-blocks icon indicating copy to clipboard operation
pibakery-blocks copied to clipboard

Exporting generates wrongly nested xml

Open inigoalonso opened this issue 9 years ago • 1 comments

An example from the Mac OS version:

<xml xmlns="http://www.w3.org/1999/xhtml"><block type="onfirstboot" id="onfirstboot" x="196" y="17"><next><block type="wifisetup" id="tdj{ab/qfO0U8OZk;;d3"><field name="1">network-name</field><field name="2">network-password</field><field name="3">WPA/WPA2</field><next><block type="downloadfile" id="kp6B#4)Jt!tnen6B@W/-"><field name="1">http://example.com/my-file</field><field name="2">/home/pi/new-name</field></block></next></block></next></block></xml>

But on the bright side, importing works anyway.

inigoalonso avatar Sep 08 '16 18:09 inigoalonso

The import/export code is almost exclusively handled by Blockly, and although it sometimes produces odd results, they usually work (as you pointed out).

davidferguson avatar Sep 08 '16 18:09 davidferguson