summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <megas.kapaneus@gmail.com>2013-04-07 22:00:59 +0200
committerPhilipp Gesang <megas.kapaneus@gmail.com>2013-04-07 22:00:59 +0200
commit6b7ebe9f0f9917564249eeae45d3daf9fb1fc127 (patch)
treed6fa4c0e3894fbb24194be63f2b6f3437d2e47c2
parent64d4b28bb8f9bf40a96edf73d3a8bc276df5992e (diff)
downloadlualibs-6b7ebe9f0f9917564249eeae45d3daf9fb1fc127.tar.gz
update util-dim
-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