Skip to content

Commit ee0e137

Browse files
committed
Change to formatting for alternatives (#123) plus spacing (#121)
There was a bug in entry merging when there are notes. This manifested in pinawêw not showing up for "she sheds", as the removal of the note left the entry as "s/hesheds" instead.
1 parent fae590b commit ee0e137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/convert/CW.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class Entry {
238238
}
239239
if (alt.length > 1) {
240240
this.htmlInfo ??= '';
241-
this.htmlInfo += `<p><table colspan=1><tr><td>Alternatives</td></tr>\n`+alt.map(entry => `<tr><td>${entry}</td></tr>`).join('\n')+`</table></p>`;
241+
this.htmlInfo += `<p><table colspan=1><tr><td>Alternatives</td></tr>\n`+alt.map(entry => `<tr><td><strong>${entry}</strong></td></tr>`).join('\n')+`</table></p>`;
242242
}
243243
}
244244

@@ -415,7 +415,7 @@ export class Entry {
415415

416416
return {
417417
bracketedText: bracketedText.trim(),
418-
definition: [textBefore, textAfter].map(str => str.trim()).join(``),
418+
definition: [textBefore, textAfter].map(str => str.trim()).join(` `),
419419
};
420420

421421
}

0 commit comments

Comments
 (0)