If or not if?

pull/3024/head
qintarp 6 years ago
parent 0a119d3e27
commit 4b9aaabec1

@ -12,7 +12,7 @@ export default class Text extends Node {
super(component, parent, scope, info); super(component, parent, scope, info);
this.data = info.data; this.data = info.data;
if (!component.component_options.preserveWhitespace) {
let node = parent; let node = parent;
while (node) { while (node) {
if (node.type === 'Element' && node.name === 'pre') { if (node.type === 'Element' && node.name === 'pre') {
@ -22,5 +22,6 @@ export default class Text extends Node {
} }
}
} }
} }

Loading…
Cancel
Save