Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan committed Sep 27, 2023
1 parent 1049042 commit 2c72ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2c72ccc

Please sign in to comment.