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 e46adfb commit d55a00dCopy full SHA for d55a00d
src/Html2OpenXml/Expressions/Table/TableExpression.cs
@@ -245,7 +245,8 @@ protected override void ComposeStyles (ParsingContext context)
245
tableProperties.TableBorders = tableBorders;
246
}
247
// is the border=0? If so, we remove the border regardless the style in use
248
- else if (tableNode.Border == 0)
+ // but only remove border if the html style border was set, otherwise leave the border style as-is.
249
+ else if (!styleBorder.IsEmpty && tableNode.Border == 0)
250
{
251
tableProperties.TableBorders = new TableBorders() {
252
TopBorder = new TopBorder { Val = BorderValues.None },
0 commit comments