Skip to content

Commit

Permalink
Merge pull request #300 from picrap/tr-writeattributes
Browse files Browse the repository at this point in the history
HtmlTableRenderer: writing <tr> attributes
  • Loading branch information
xoofx authored Feb 8, 2019
2 parents 1d8266b + 7719ef5 commit bc4dbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Markdig/Extensions/Tables/HtmlTableRenderer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.

using System;
Expand Down Expand Up @@ -69,7 +69,7 @@ protected override void Write(HtmlRenderer renderer, Table table)
renderer.WriteLine("<tbody>");
hasBody = true;
}
renderer.WriteLine("<tr>");
renderer.Write("<tr").WriteAttributes(row).WriteLine(">");
for (int i = 0; i < row.Count; i++)
{
var cellObj = row[i];
Expand Down

0 comments on commit bc4dbd1

Please sign in to comment.