Make sure swallowNewlines is reset when the text after a block
tag resumes, even if no newline has been encountered.
This commit is contained in:
parent
320d60f19a
commit
bdb1cb8f06
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ public final class HtmlEncoder {
|
|||
// if (i < l-2)
|
||||
}
|
||||
|
||||
if ((linebreaks > 0) && !Character.isWhitespace(c)) {
|
||||
if ((linebreaks > 0 || swallowLinebreaks > 0) && !Character.isWhitespace(c)) {
|
||||
if (!insidePreTag && (linebreaks > swallowLinebreaks)) {
|
||||
linebreaks -= swallowLinebreaks;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue