Suppress extra newline at end

This commit is contained in:
M66B 2020-08-21 09:37:58 +02:00
parent c7b7fee232
commit 9c9ee9c39e
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ public class HtmlEx {
out.append(isInBulletList ? "</ul>\n" : "</ol>\n");
isInBulletList = null;
}
out.append("<br>\n");
if (i != text.length())
out.append("<br>\n");
} else {
Boolean isBulletListItem = null;
ParagraphStyle[] paragraphStyles = text.getSpans(i, next, ParagraphStyle.class);