diff --git a/src/Pickles/Pickles.DocumentationBuilders.Html/HtmlTableFormatter.cs b/src/Pickles/Pickles.DocumentationBuilders.Html/HtmlTableFormatter.cs index 84af4bf69..d122edcb5 100644 --- a/src/Pickles/Pickles.DocumentationBuilders.Html/HtmlTableFormatter.cs +++ b/src/Pickles/Pickles.DocumentationBuilders.Html/HtmlTableFormatter.cs @@ -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"),