diff --git a/src/text/index.ts b/src/text/index.ts index e4ffd46f..57c8b22f 100644 --- a/src/text/index.ts +++ b/src/text/index.ts @@ -265,7 +265,7 @@ export default async function* buildTextNodes( if (forceBreak || willWrap) { // Start a new line, spaces can be ignored. // @TODO Lack of support for Japanese spacing - if (shouldCollapseTabsAndSpaces && word === ' ') { + if (shouldCollapseTabsAndSpaces && word === Space) { w = 0 }