Add space before self-closing a JSXElement

master
James Long 2017-01-09 14:16:28 -05:00
parent 892d070313
commit f40f5f11d6
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ function genericPrintNoParens(path, options, print) {
"<",
path.call(print, "name"),
concat(path.map(attr => concat([ " ", print(attr) ]), "attributes")),
n.selfClosing ? "/>" : ">"
n.selfClosing ? " />" : ">"
])
);
case "JSXClosingElement":