1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Chore: Fixed Crowdin translation issues

This commit is contained in:
Laurent Cozic
2025-04-16 16:57:17 +01:00
parent e847b1b902
commit 2014fbf480
7 changed files with 9 additions and 5 deletions

View File

@@ -95,7 +95,9 @@ const parseHtml = (html: string) => {
attrHtml.push(`${n}=${escapedValue}`);
}
output.push(`<${name} ${attrHtml.join(' ')}${closingSign}`);
const closingSpace = isSelfClosingTag(name) || !!attrHtml.length ? ' ' : '';
output.push(`<${name}${attrHtml.length ? ` ${attrHtml.join(' ')}` : ''}${closingSpace}${closingSign}`);
},
ontext: (decodedText: string) => {