Fixed line break after lines

pull/207/head
M66B 3 years ago
parent d6e9514dc9
commit df3e0e132a

@ -3614,9 +3614,8 @@ public class HtmlHelper {
} }
for (Element line : doc.select("hr")) { for (Element line : doc.select("hr")) {
Element next = line.nextElementSibling(); String style = line.attr("style");
if (next != null && "br".equals(next.tagName())) line.attr("style", mergeStyles(style, "display:inline;"));
next.remove();
} }
return doc.html(); return doc.html();

Loading…
Cancel
Save