summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-27 09:16:15 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-27 09:16:29 -0800
commit27ba06fe8f3f48136b5df4c3c1d10e62b4762072 (patch)
tree6d1ca069d1726686ccfc26c920e890e796aa8dc3 /data
parent0e3736422ee97a5cfedc255705f566a319f954f9 (diff)
data/sample.lua: fixed problem with tables.
Closes #4202.
Diffstat (limited to 'data')
-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 = {}