Skip to content

Commit

Permalink
Fix for extra header cell in html output
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Carlson authored and ericcmmi committed Mar 8, 2021
1 parent eddf1bc commit 6b84396
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ public XElement Format(Table table, ScenarioOutline scenarioOutline)

var headerCells = table.HeaderRow.Cells.ToArray();

headerCells = headerCells.Concat(new[] { " " }).ToArray();

if(headerCells.Length == 0)
{
headerCells = headerCells.Concat(new[] { "" }).ToArray();
}

return new XElement(
this.xmlns + "div",
new XAttribute("class", "table_container"),
Expand Down

0 comments on commit 6b84396

Please sign in to comment.