From 27ba06fe8f3f48136b5df4c3c1d10e62b4762072 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 27 Dec 2017 09:16:15 -0800
Subject: [PATCH] data/sample.lua: fixed problem with tables.

Closes #4202.
---
 data/sample.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 = {}