drewg13 / foundryvtt-scum-and-villainy

Scum and Villainy game system for FoundryVTT
Other
12 stars 15 forks source link

[Bug] Special Chars #60

Closed brunocalado closed 2 years ago

brunocalado commented 2 years ago

Hi.

My language has special chars. They use html code on the actor sheet. Can you fix it? image

tks

drewg13 commented 2 years ago

I have a pretty good idea what the fix is, but can you attach an exported JSON of an affected item so I can test?

brunocalado commented 2 years ago
{
  "name": "Ability",
  "type": "ability",
  "img": "icons/svg/item-bag.svg",
  "data": {
    "description": "<p>Poema &eacute; um g&ecirc;nero textual dividido em estrofes e versos. Cada estrofe &eacute; constitu&iacute;da por versos (n&atilde;o tendo um n&uacute;mero exato). Introduzidos pelo sentido das frases - e mais raramente em conversa - em que a poesia, forma de express&atilde;o est&eacute;tica atrav&eacute;s da l&iacute;ngua, geralmente se manifesta. Al&eacute;m dos versos, n&atilde;o obrigatoriamente, fazem parte da estrutura do poema as estrofes , a rima e a m&eacute;trica.</p>\n<p>&nbsp;</p>\n<p>Conforme a disposi&ccedil;&atilde;o dos versos e dos outros elementos estruturais, os poemas podem receber classifica&ccedil;&otilde;es ou nomes espec&iacute;ficos (ou ser considerados g&ecirc;neros liter&aacute;rios pr&oacute;prios) tais como rapanha, haiku, poema-colagem, soneto, poema-dram&aacute;tico, poema-figurado, epopeia, etc.</p>",
    "class": "",
    "price": "1",
    "starting": false,
    "recommended": false,
    "logic": "",
    "activation": {
      "type": "",
      "cost": 0,
      "condition": ""
    },
    "duration": {
      "value": null,
      "units": ""
    },
    "target": {
      "value": null,
      "width": null,
      "units": "",
      "type": ""
    },
    "range": {
      "value": null,
      "long": null,
      "units": ""
    },
    "uses": {
      "value": 0,
      "max": 0,
      "per": null
    },
    "consume": {
      "type": "",
      "target": null,
      "amount": null
    }
  },
  "effects": [],
  "flags": {
    "exportSource": {
      "world": "teste-scum",
      "system": "scum-and-villainy",
      "coreVersion": "9.249",
      "systemVersion": "1.16.0"
    }
  }
}
drewg13 commented 2 years ago

Should be fixed in 1.16.1. All of the data.description fields needed {{{ }}} instead of {{ }}. I had done some of them, but not all.