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