Fixed extra newlines

This commit is contained in:
M66B
2020-05-02 22:05:22 +02:00
parent 760fee92c5
commit cd10a32d9f

View File

@@ -1776,7 +1776,7 @@ public class HtmlHelper {
}
// Remove whitespace before/after newlines
TRIM_WHITESPACE_NL.matcher(text).replaceAll(" ");
text = TRIM_WHITESPACE_NL.matcher(text).replaceAll(" ");
if (i == 0 || endsWithWhitespace(block.get(i - 1).text()))
while (startsWithWhiteSpace(text))