Skip to content

Commit 7972659

Browse files
committed
Add tests for whitespaces in ul/ol.
1 parent bee1058 commit 7972659

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_ppx.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ let basics = "ppx basics", tyxml_tests Html.[
8181
[%html " bar<p></p>foo "],
8282
[pcdata " bar" ; p [] ; pcdata "foo " ] ;
8383

84+
"whitespace in ul",
85+
[[%html "<ul> <li>foo</li> <li>bar</li> </ul>"]],
86+
[ul [li [pcdata "foo"] ; li [pcdata "bar"]]] ;
87+
88+
"whitespace in ol",
89+
[[%html "<ol> <li>foo</li> <li>bar</li> </ol>"]],
90+
[ol [li [pcdata "foo"] ; li [pcdata "bar"]]] ;
91+
8492
]
8593

8694
let attribs = "ppx attribs", tyxml_tests Html.[

0 commit comments

Comments
 (0)