summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/l-table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/l-table.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/l-table.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/l-table.lua b/Master/texmf-dist/tex/context/base/mkiv/l-table.lua
index 5deb795d109..6bb0ef6375e 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/l-table.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/l-table.lua
@@ -573,7 +573,12 @@ local function is_simple_table(t) -- also used in util-tab so maybe public
local v = t[i]
local tv = type(v)
if tv == "number" then
- tt[i] = v -- not needed tostring(v)
+ -- tt[i] = v -- not needed tostring(v)
+ if hexify then
+ tt[i] = format("0x%X",v)
+ else
+ tt[i] = v -- not needed tostring(v)
+ end
elseif tv == "string" then
tt[i] = format("%q",v) -- f_string(v)
elseif tv == "boolean" then
@@ -589,7 +594,12 @@ local function is_simple_table(t) -- also used in util-tab so maybe public
local v = t[i]
local tv = type(v)
if tv == "number" then
- tt[i+1] = v -- not needed tostring(v)
+ -- tt[i+1] = v -- not needed tostring(v)
+ if hexify then
+ tt[i+1] = format("0x%X",v)
+ else
+ tt[i+1] = v -- not needed tostring(v)
+ end
elseif tv == "string" then
tt[i+1] = format("%q",v) -- f_string(v)
elseif tv == "boolean" then