|
|
|
@ -143,12 +143,10 @@ export default class InlineComponent extends Node {
|
|
|
|
|
|
|
|
|
|
|
|
children.push(slot_template);
|
|
|
|
children.push(slot_template);
|
|
|
|
info.children.splice(i, 1);
|
|
|
|
info.children.splice(i, 1);
|
|
|
|
} else if (child.type === 'Comment') {
|
|
|
|
} else if (child.type === 'Comment' && children.length > 0) {
|
|
|
|
if (children.length > 0) {
|
|
|
|
|
|
|
|
children[children.length - 1].children.unshift(child);
|
|
|
|
children[children.length - 1].children.unshift(child);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (info.children.some(node => not_whitespace_text(node))) {
|
|
|
|
if (info.children.some(node => not_whitespace_text(node))) {
|
|
|
|
children.push({
|
|
|
|
children.push({
|
|
|
|
|