git.iko.soy/typeable/pandoc
on master help sign in
data/sample.lua: fixed problem with tables.

Closes #4202.

commit27ba06fe8f3f48136b5df4c3c1d10e62b4762072 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 27 Dec 2017, 09:16 (9 years ago) parent0e37364
1 file changed+1−1
data/sample.lua+1−1
data/sample.lua+1−1
@@ -286,7 +286,7 @@ function Table(caption, aligns, widths, headers, rows)
286286 end
287287 if widths and widths[1] ~= 0 then
288288 for _, w in pairs(widths) do
289− add('<col width="' .. string.format("%d%%", w * 100) .. '" />')
289+ add('<col width="' .. string.format("%.0f%%", w * 100) .. '" />')
290290 end
291291 end
292292 local header_row = {}