Originally Posted by
dbachen
Hi Celestian,
I found a possible bug that you might be able to fix in regards to the character encoding.
Here's an example:
Nøkken
This encodes properly everywhere in the reference manual except for the image caption, which double encodes the ampersand.
[ Properly encoded ]
<link class="npc" recordname="reference.npcdata.id-00044"><b>NPC: </b>Nøkken</link>
[ Improperly encoded ]
<caption type="string">Image: Nøkken</caption>
You're probably looking for the & and replacing it with & but that should only be done if the next character is not # (e.g. &#), since that's already encoded.
Not sure the extension code is doing the encoding or if its happening automatically as part of the export function - which you wouldn't have control over.
I wound just doing a find on replace = &# -> &# in the db.xml and I fixed it myself for this project but wanted to let you know.
I also have a question about the captions.
Sometimes the caption doesn't show up in the ref and it's just the image.. Other times I get the "Image: <imagename>" caption underneath. On one my exports, some had it, some didn't. Is this part of the "still in development" and maybe that's why its inconsistent, or might there be another reason.