summaryrefslogtreecommitdiff
path: root/lualibs-util-dim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualibs-util-dim.lua')
-rw-r--r--lualibs-util-dim.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualibs-util-dim.lua b/lualibs-util-dim.lua
index 4bae2d0..47b2706 100644
--- a/lualibs-util-dim.lua
+++ b/lualibs-util-dim.lua
@@ -20,6 +20,7 @@ local P, S, R, Cc, C, lpegmatch = lpeg.P, lpeg.S, lpeg.R, lpeg.Cc, lpeg.C, lpeg.
local allocate = utilities.storage.allocate
local setmetatableindex = table.setmetatableindex
+local formatters = string.formatters
--this might become another namespace
@@ -86,6 +87,7 @@ local dimenfactors = allocate {
format (string) is implemented using this table.</p>
--ldx]]--
+
local function numbertodimen(n,unit,fmt)
if type(n) == 'string' then
return n