Skip to content

Commit 8497b35

Browse files
committed
Fix CorrectTextBoxes implementation
1 parent 6aea93b commit 8497b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external/HtmlRenderer/Core/Parse/DomParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ private static void CorrectTextBoxes(CssBox box)
582582
if (!childBox.Text.IsEmpty)
583583
{
584584
// is the box has text
585-
var keepBox = !childBox.IsSpaceOrEmpty;
585+
var keepBox = !childBox.Text.Span.IsEmptyOrWhitespace();
586586

587587
// is the box is pre-formatted
588588
keepBox = keepBox || childBox.WhiteSpace == CssConstants.Pre || childBox.WhiteSpace == CssConstants.PreWrap;

0 commit comments

Comments
 (0)