Blesmol / pfscf

Pathfinder Society Chronicle Filler
https://blesmol.github.io/pfscf/
MIT License
7 stars 3 forks source link

Example texts with "\n" break generated CSVs #106

Open Blesmol opened 3 years ago

Blesmol commented 3 years ago

If an example text contains an escaped newline (\n), then the generated CSV file will contain a real newline, thus breaking the CSV format.

Blesmol commented 3 years ago

According to documentation this should work.... https://golang.org/pkg/encoding/csv/

Although would be probably best here if this is also written out to CSV as \n again

Blesmol commented 3 years ago

...because if the example text is printed as part of the legend, then the line is a comment. But the newline char is just printed into the file, creating a new non-comment line that then has the wrong format. D'oh!