summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/sample.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/sample.lua b/data/sample.lua
index d3c5ad3df..3ea95ebd8 100644
--- a/data/sample.lua
+++ b/data/sample.lua
@@ -286,7 +286,7 @@ function Table(caption, aligns, widths, headers, rows)
end
if widths and widths[1] ~= 0 then
for _, w in pairs(widths) do
- add('<col width="' .. string.format("%d%%", w * 100) .. '" />')
+ add('<col width="' .. string.format("%.0f%%", w * 100) .. '" />')
end
end
local header_row = {}