fix JSX literal children not being output correctly

This commit is contained in:
Sebastian McKenzie 2015-04-24 19:28:17 +01:00
parent a36c1b4a92
commit 6e4e11a365

View File

@ -45,7 +45,7 @@ export function JSXElement(node, print) {
this.indent();
each(node.children, (child) => {
if (t.isLiteral(child)) {
this.push(child.value);
this.push(child.value, true);
} else {
print(child);
}