CrochetCharts icon indicating copy to clipboard operation
CrochetCharts copied to clipboard

indicators not interpreting CarriageReturn/LineFeed on load

Open Neon22 opened this issue 5 years ago • 1 comments

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 avatar Jan 18 '20 02:01 Neon22

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

  • external editing/generation of files would be easier,
  • transferring files between people would be easier because they could be cut and pasted. At the moment a binary transfer mechanism is essential and difficult.

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).

Neon22 avatar Jan 18 '20 02:01 Neon22