Closed jakeyr closed 10 years ago
I think this commit fixes it, although I have not fully tested it yet:
https://github.com/lendup/java-kit/commit/8b8ed4b57ea915210d8fefaa5e04d92152fce108?w=1
Hey, thanks a lot for fixing this! For some reason, our test case worked well, and your fix didn't break it, and turns out to work for all cases, so I took the liberty to merge your commit to our master. Thanks a lot!
If you call asHtml on a StructuredText block using the java kit and the content starts with a
<ul>
, the first list item (an<li>
tag) is incorrectly positioned outside the<ul>
.the bug is at https://github.com/prismicio/java-kit/blob/master/src/main/java/io/prismic/Fragment.java#L706
notice the loop will not create a
<ul>
tag during the first pass through the group elements.thanks!