haganbmj / MagicSetEditor2

Magic Set Editor is a program for designing trading cards
Other
17 stars 7 forks source link

Issue with multi-line strings in extra card fields #60

Open haganbmj opened 1 year ago

haganbmj commented 1 year ago

Report that MSE will crash if you try to go to the second line of a multi-line string that's defined as an extra card field? Need to confirm.

haganbmj commented 1 year ago

Haven't been able to replicate. May already be resolved.

G-e-n-e-v-e-n-s-i-S commented 7 months ago

I have never seen it crash from this, but if you write multiple lines into an extra text field, save the set, re-launch MSE, then reload the set, the value stored in the extra card field will be lost, and the program will produce a warning:

Warnings while reading file:
delayed data for [template folder name]

On line X: Blank line or comment in text block, that is insufficiently indented.
Either indent the comment/blank line, or add a 'key:' after it.
This could cause more more error messages.

Most likely, the new line character is not properly escaped when saving the set.