summaryrefslogtreecommitdiff
path: root/tex/context/base/util-dim.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-03-13 00:08:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-03-13 00:08:00 +0100
commit1564c7a2753a36c58b7bec630309be771ca616c1 (patch)
treeeae599d8a78b30fa42439583db84d6b73e24f3c2 /tex/context/base/util-dim.lua
parent0e99414568abe788b78a41305cc83e5a4c6b2714 (diff)
downloadcontext-1564c7a2753a36c58b7bec630309be771ca616c1.tar.gz
beta 2013.03.13 00:08
Diffstat (limited to 'tex/context/base/util-dim.lua')
-rw-r--r--tex/context/base/util-dim.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/util-dim.lua b/tex/context/base/util-dim.lua
index 4bae2d099..47b2706b7 100644
--- a/tex/context/base/util-dim.lua
+++ b/tex/context/base/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