Fix special characters

This commit is contained in:
Pierre HUBERT 2023-08-23 16:19:45 +02:00
parent 17a2cd156d
commit 89c3781219

View File

@ -48,9 +48,11 @@ export function ComplexFamilyTree(p: {
d.data.dead ? "✝" : ""
}`,
(d) => {
let s = `${d.data.birthday || ""} ${
d.data.deathday ? " ✝ " + d.data.deathday : ""
}`;
let birthDeath = [];
if (d.data.birthday) birthDeath.push(d.data.birthday);
if (d.data.deathday) birthDeath.push(d.data.deathday);
let s = birthDeath.join(" -> ");
if (d.data.wedding_state || d.data.dateOfWedding) {
let weddingInfo = [];
@ -113,6 +115,8 @@ export function ComplexFamilyTree(p: {
dstSVG = dstSVG.replaceAll(`>UNKNOWN<`, `fill="#000">INCONNU<`);
dstSVG = dstSVG.replaceAll("✝", " ");
let womanTiles = getAllIndexes(dstSVG, "card-female");
for (const i of womanTiles) {
dstSVG =