Skip to content

Commit 251244b

Browse files
committed
Add space after children.
1 parent 5fef337 commit 251244b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/syntax/src/res_printer.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4456,8 +4456,8 @@ and print_jsx_container_tag ~state tag_name props
44564456
in
44574457
let line_sep = Doc.line in
44584458
let print_children children =
4459-
print_jsx_children ~sep:line_sep ~state children cmt_tbl
4460-
|> Doc.group |> Doc.indent
4459+
Doc.group
4460+
(Doc.indent (print_jsx_children ~sep:line_sep ~state children cmt_tbl))
44614461
in
44624462

44634463
Doc.group
@@ -4487,6 +4487,7 @@ and print_jsx_container_tag ~state tag_name props
44874487
[
44884488
(if has_children then Doc.line else Doc.nil);
44894489
(if has_children then print_children children else Doc.nil);
4490+
(if has_children then Doc.line else Doc.nil);
44904491
Doc.text "</";
44914492
name;
44924493
Doc.greater_than;
@@ -4631,6 +4632,7 @@ and print_jsx_children ~state (children_expr : Parsetree.jsx_children) ~sep
46314632
| JSXChildrenSpreading child ->
46324633
Doc.concat
46334634
[Doc.dotdotdot; print_expression_with_comments ~state child cmt_tbl]
4635+
| JSXChildrenItems [] -> Doc.nil
46344636
| JSXChildrenItems children ->
46354637
children
46364638
|> List.map (fun child ->

0 commit comments

Comments
 (0)