We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e02b55 commit f14f1d0Copy full SHA for f14f1d0
src/Html2OpenXml/Expressions/Table/TableCellExpression.cs
@@ -45,7 +45,7 @@ public override IEnumerable<OpenXmlElement> Interpret (ParsingContext context)
45
46
// Word requires at least one paragraph in a cell
47
// OpenXmlValidator does not catch this error
48
- if (!childElements.OfType<Paragraph>().Any())
+ if (!childElements.Any(c => c is Paragraph))
49
{
50
childElements = childElements.Append(new Paragraph());
51
}
0 commit comments