diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-02-06 19:14:14 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-02-06 19:14:14 +0100 |
commit | 0d0874ba797ee44f9fa53ed0fe95d7a863bf2f1b (patch) | |
tree | ea9c82877dd7a14db92e964277551370ecc156cb /tex/context/base/mkxl/lpdf-rul.lmt | |
parent | 83667a906d7cac842635bc5243db70f55b346562 (diff) | |
download | context-0d0874ba797ee44f9fa53ed0fe95d7a863bf2f1b.tar.gz |
2023-02-06 17:57:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-rul.lmt')
-rw-r--r-- | tex/context/base/mkxl/lpdf-rul.lmt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tex/context/base/mkxl/lpdf-rul.lmt b/tex/context/base/mkxl/lpdf-rul.lmt index 3bcfa80e2..4efa17bb0 100644 --- a/tex/context/base/mkxl/lpdf-rul.lmt +++ b/tex/context/base/mkxl/lpdf-rul.lmt @@ -8,7 +8,7 @@ if not modules then modules = { } end modules ['lpdf-rul'] = { -- todo: split backend and pdf -local tonumber, next, type = tonumber, next, type +local tonumber, tostring, next, type = tonumber, tostring, next, type local concat, setmetatableindex = table.concat, table.setmetatableindex local attributes = attributes @@ -237,13 +237,23 @@ do } setmetatableindex(linemapping,function(t,k) - local v = tonumber(k) and k or "ltrb" + local v = tonumber(k) + if v then + v = tostring(v) + else + v = "ltrb" + end t[k] = v return v end) setmetatableindex(roundmapping,function(t,k) - local v = tonumber(k) and k or "ltrb" + local v = tonumber(k) + if v then + v = tostring(v) + else + v = "ltrb" + end t[k] = v return v end) |