We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aea93b commit 8497b35Copy full SHA for 8497b35
external/HtmlRenderer/Core/Parse/DomParser.cs
@@ -582,7 +582,7 @@ private static void CorrectTextBoxes(CssBox box)
582
if (!childBox.Text.IsEmpty)
583
{
584
// is the box has text
585
- var keepBox = !childBox.IsSpaceOrEmpty;
+ var keepBox = !childBox.Text.Span.IsEmptyOrWhitespace();
586
587
// is the box is pre-formatted
588
keepBox = keepBox || childBox.WhiteSpace == CssConstants.Pre || childBox.WhiteSpace == CssConstants.PreWrap;
0 commit comments