Whitespace fix

This commit is contained in:
M66B 2020-05-18 16:56:50 +02:00
parent d99d8d84aa
commit b45bf99363
1 changed files with 2 additions and 2 deletions

View File

@ -795,7 +795,7 @@ public class HtmlHelper {
// separate columns
if (hasVisibleContent(col.childNodes()))
if (col.nextElementSibling() != null)
col.appendText("\u2003"); // em space
col.appendText(" ");
if ("th".equals(col.tagName()))
col.tagName("strong");
@ -1849,7 +1849,7 @@ public class HtmlHelper {
// Remove multiple trailing whitespace
index = text.length() - 1;
while (isWhiteSpace(text, index) &&
(i == block.size() - 1 || index == 0 || isWhiteSpace(text, index - 1)))
(isWhiteSpace(text, index - 1) || i == block.size() - 1))
index--;
text = text.substring(0, index + 1);