Skip to content

Commit

Permalink
fix: #295
Browse files Browse the repository at this point in the history
  • Loading branch information
big-camel committed Mar 12, 2023
1 parent 0b9131e commit db92238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class Parser implements ParserInterface {
}
} else if (node.isText()) {
const text = node.text();
if (/^\n/.test(text) || /^\s/.test(text)) {
if (/^\n+$/.test(text) || /^\s+$/.test(text)) {
const element = node.get<Text>()!;
const prev = element.previousSibling;
const next = element.nextSibling;
Expand Down

0 comments on commit db92238

Please sign in to comment.