Skip to content

Commit 7823bfa

Browse files
Do not trim strings next to elements, just collapse multiple whitespace (#205)
1 parent d99ae46 commit 7823bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nx/blocks/loc/project/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ function collapseInnerTextSpaces(html) {
124124
return match;
125125
}
126126

127-
// Collapse multiple spaces to single space, trim padding
128-
const cleaned = textContent.replace(/\s+/g, ' ').trim();
127+
// Collapse multiple spaces to single space
128+
const cleaned = textContent.replace(/\s+/g, ' ');
129129
return `>${cleaned}<`;
130130
});
131131
}

0 commit comments

Comments
 (0)