revert Fragment

pull/7280/head
yosuke ota 4 years ago
parent 563303cdf0
commit 03dff46522

@ -127,10 +127,9 @@ export default class FragmentWrapper {
if (strip_whitespace) {
const first = this.nodes[0] as Text;
if (first && first.node.type === 'Text') {
if (!first.node.keep_space()) {
if (first && first.node.type === 'Text' && !first.node.keep_space()) {
first.data = trim_start(first.data);
}
if (!first.data) {
first.var = null;
this.nodes.shift();

Loading…
Cancel
Save