Skip to content

Commit

Permalink
fix(app): text (question/172667)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jun 27, 2023
1 parent c51bee7 commit 6dde571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-cli-plugin-hbuilderx/build/vue-loader.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function parseText (el) {
}
})
el.children = [{ type: 2, expression: expression.join('+'), tokens: [] }]
} else if (children.length === 1) {
} else if (children.length === 1 && children[0].text) {
children[0].text = children[0].text.replace(/\n/g, '').replace(/\\n/g, '\n')
}
}
Expand Down

0 comments on commit 6dde571

Please sign in to comment.