Fix special characters
This commit is contained in:
parent
17a2cd156d
commit
89c3781219
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user