yochaigal / kettlewright

Kettlewright
https://kettlewright.com
GNU General Public License v3.0
44 stars 8 forks source link

Item description text syntax error #118

Closed PSCourtney closed 2 months ago

PSCourtney commented 2 months ago

Line breaks within the description text causes json syntax error on the character view page.
Capture

Steps to reproduce.

  1. Create custom item
  2. Add the following description text "Curse Unlife

Once per day Deals 1d4 +2 STR loss to one undead, ignoring armour and resistances"

  1. Go to character view page.
  2. See reported error in console.

What the error breaks: Character portrait HP Inventory

Workaround: Remove the linebreaks.

I've attached my error log. kettlewright.com-1726670232505.log

david-stearns commented 2 months ago

error should now be fixed. However, currently line breaks do not show in the modal when clicking the (i) icon

PSCourtney commented 2 months ago

Yep. Working my end! 👌