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.

Cloud Giant

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@bszonye can you check if the new release fixes these issues

As far as the revealing of the \n in 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 \\n within the files. Manually correcting it to \n in 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.

image