iPenguin / CrochetCharts

Graphics design software for Crochet pattern designers
http://StitchworksSoftware.com
GNU General Public License v3.0
58 stars 15 forks source link

indicators not interpreting CarriageReturn/LineFeed on load #6

Open Neon22 opened 4 years ago

Neon22 commented 4 years ago

If an indicator is saved with a CarriageReturn/LineFeed embedded in it appears like this in the .pattern xml file:

<indicator>
            <x>115.608</x>
            <y>-98.4189</y>
            <text>3. Pickup prior loop again.
    sc through next stitch.</text>

However on reload the carriage return is being ignored on reading and the indicator shows as a single line of text.

Note the character at the end of the line is a LineFeed. This is the same as every other line. so no CarriageReturn is actually in file.

Not sure if correct solution is in encoding to file, or in reading from file.

Neon22 commented 4 years ago

Its worth noting that IF the .pattern and .set files could be forced into ASCII XML then:

For example, no forum swaps are possible.

Its also probable that forcing ASCII XML could eliminate a number of other problems (e.g. multi-line notifications).