fantasy-statblocks: SRD stat blocks rendering with \n instead of newline
I’m using the plugin for the first time on Windows, and I’m seeing \n sequences in stat blocks where there should be newlines. In the source data, the newlines are encoded as \\n. I’m wondering whether those should be \n? Or perhaps those escapes aren’t being decoded correctly at display time.
Here’s an example with the Cloud Giant stat block. Note the garbled Innate Spellcasting ability.

About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (8 by maintainers)
Commits related to this issue
- fix: Fixes spell itaclis (#148) — committed to javalent/fantasy-statblocks by valentine195 a year ago
- fix: Fixes subsequent paragraph display in markdown holders (#148) — committed to javalent/fantasy-statblocks by valentine195 a year ago
- fix: Fixes subsequent paragraph display in markdown holders (#148) — committed to sigrunixia/fantasy-statblocks by valentine195 a year ago
@bszonye can you check if the new release fixes these issues
As far as the revealing of the
\nin the SRD monster entry. It is not exclusive to Cloud Giant. It is happening to other monsters in the SRD such as Couatl, due to the use of\\nwithin the files. Manually correcting it to\nin main.js does of course fix the display of “/n”, but does not fix the issue with rendering spells or anything with “Innate Spellcasting”.We could always get rid of \n and turn them into -name and desc like I did above if it makes it harder to do proper find & replace.