We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1713061 commit 082fc39Copy full SHA for 082fc39
src/compiler/parser/html-parser.js
@@ -79,9 +79,6 @@ export function parseHTML (html, options) {
79
last = html
80
// Make sure we're not in a plaintext content element like script/style
81
if (!lastTag || !isPlainTextElement(lastTag)) {
82
- if (shouldIgnoreFirstNewline(lastTag, html)) {
83
- advance(1)
84
- }
85
let textEnd = html.indexOf('<')
86
if (textEnd === 0) {
87
// Comment:
@@ -127,6 +124,9 @@ export function parseHTML (html, options) {
127
124
const startTagMatch = parseStartTag()
128
125
if (startTagMatch) {
129
126
handleStartTag(startTagMatch)
+ if (shouldIgnoreFirstNewline(lastTag, html)) {
+ advance(1)
+ }
130
continue
131
}
132
0 commit comments