From 6b7ebe9f0f9917564249eeae45d3daf9fb1fc127 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 7 Apr 2013 22:00:59 +0200 Subject: update util-dim --- lualibs-util-dim.lua | 2 ++ 1 file changed, 2 insertions(+) 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.

--ldx]]-- + local function numbertodimen(n,unit,fmt) if type(n) == 'string' then return n -- cgit v1.2.3