Skip to content

Commit

Permalink
修复中英文空格渲染bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aprosail committed Aug 24, 2024
1 parent a6b8866 commit b8b5d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/wordless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function renderChineseSpaces(content: string) {
const charIsChinese = isChineseChar(content.charCodeAt(i))
if (charIsChinese !== lastCharIsChinese) {
const cutIndex = i
handler = content.substring(lastCutIndex, cutIndex) + " "
handler += content.substring(lastCutIndex, cutIndex) + " "
lastCutIndex = cutIndex
}
lastCharIsChinese = charIsChinese
Expand Down

0 comments on commit b8b5d7d

Please sign in to comment.