From 86659b2416b5513b448fa70329d135e3a8ce165c Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Fri, 8 Jul 2016 00:54:11 +0200 Subject: 2016-07-08 00:03:00 --- tex/context/base/mkiv/lpdf-ini.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tex/context/base/mkiv/lpdf-ini.lua') diff --git a/tex/context/base/mkiv/lpdf-ini.lua b/tex/context/base/mkiv/lpdf-ini.lua index bd47fda1b..01a045979 100644 --- a/tex/context/base/mkiv/lpdf-ini.lua +++ b/tex/context/base/mkiv/lpdf-ini.lua @@ -514,8 +514,15 @@ local mt_v = { __lpdftype = "verbose", __tostring = tostring_v, __call = valu local function pdfstream(t) -- we need to add attributes if t then - for i=1,#t do - t[i] = tostring(t[i]) + local tt = type(t) + if tt == "table" then + for i=1,#t do + t[i] = tostring(t[i]) + end + elseif tt == "string" then + t= { t } + else + t= { tostring(t) } end end return setmetatable(t or { },mt_x) -- cgit v1.2.3