diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-03-28 15:51:51 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-03-28 15:51:51 +0100 |
commit | dd8e1bab358884db6ba3f2373f515fbcc991e5ee (patch) | |
tree | dc8e018098300a0b77cb1a0aa3d2d3c1947ccb41 /tex/context/base/mkiv/lpdf-mis.lua | |
parent | d9aa299de0f736f75f90b98ab284e5bc73515949 (diff) | |
download | context-dd8e1bab358884db6ba3f2373f515fbcc991e5ee.tar.gz |
2020-03-28 14:35:00
Diffstat (limited to 'tex/context/base/mkiv/lpdf-mis.lua')
-rw-r--r-- | tex/context/base/mkiv/lpdf-mis.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/lpdf-mis.lua b/tex/context/base/mkiv/lpdf-mis.lua index 7227f9dba..a3f9789c8 100644 --- a/tex/context/base/mkiv/lpdf-mis.lua +++ b/tex/context/base/mkiv/lpdf-mis.lua @@ -17,7 +17,8 @@ if not modules then modules = { } end modules ['lpdf-mis'] = { local next, tostring, type = next, tostring, type local format, gsub, formatters = string.format, string.gsub, string.formatters -local flattened = table.flattened +local concat, flattened = table.concat, table.flattened +local settings_to_array = utilities.parsers.settings_to_array local backends, lpdf, nodes = backends, lpdf, nodes @@ -236,8 +237,8 @@ local function setupidentity() end local keywords = identity.keywords or "" if keywords ~= "" then - keywords = gsub(keywords, "[%s,]+", " ") - addtoinfo("Keywords",pdfunicode(keywords), keywords) + keywords = concat(settings_to_array(keywords), " ") + addtoinfo("Keywords", pdfunicode(keywords), keywords) end local id = lpdf.id() addtoinfo("ID", pdfstring(id), id) -- needed for pdf/x @@ -451,7 +452,7 @@ local function documentspecification() if not pagespec or pagespec == "" then pagespec = v_default end - local settings = utilities.parsers.settings_to_array(pagespec) + local settings = settings_to_array(pagespec) -- so the first one detemines the defaults local first = settings[1] local defaults = pagespecs[first] |