Add space before self-closing a JSXElement
parent
892d070313
commit
f40f5f11d6
|
@ -1101,7 +1101,7 @@ function genericPrintNoParens(path, options, print) {
|
||||||
"<",
|
"<",
|
||||||
path.call(print, "name"),
|
path.call(print, "name"),
|
||||||
concat(path.map(attr => concat([ " ", print(attr) ]), "attributes")),
|
concat(path.map(attr => concat([ " ", print(attr) ]), "attributes")),
|
||||||
n.selfClosing ? "/>" : ">"
|
n.selfClosing ? " />" : ">"
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
case "JSXClosingElement":
|
case "JSXClosingElement":
|
||||||
|
|
Loading…
Reference in New Issue