mirror of
https://github.com/xoofx/markdig.git
synced 2026-10-09 07:07:34 +00:00
Render table colspan with optional decimals for percentage
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Markdig.Extensions.Tables
|
||||
foreach (var tableColumnDefinition in table.ColumnDefinitions)
|
||||
{
|
||||
var width = Math.Round(tableColumnDefinition.Width*100)/100;
|
||||
var widthValue = string.Format(CultureInfo.InvariantCulture, "{0:n2}", width);
|
||||
var widthValue = string.Format(CultureInfo.InvariantCulture, "{0:0.##}", width);
|
||||
renderer.WriteLine($"<col style=\"width:{widthValue}%\">");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user