summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/lpdf-epa.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/lpdf-epa.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/lpdf-epa.lua13
1 files changed, 6 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/context/base/lpdf-epa.lua b/Master/texmf-dist/tex/context/base/lpdf-epa.lua
index 17c55eb0c90..c8d23a61825 100644
--- a/Master/texmf-dist/tex/context/base/lpdf-epa.lua
+++ b/Master/texmf-dist/tex/context/base/lpdf-epa.lua
@@ -10,7 +10,7 @@ if not modules then modules = { } end modules ['lpdf-epa'] = {
-- change.
local type, tonumber = type, tonumber
-local format = string.format
+local format, gsub = string.format, string.gsub
local trace_links = false trackers.register("figures.links", function(v) trace_links = v end)
@@ -171,12 +171,11 @@ function codeinjections.mergeviewerlayers(specification)
local layers = document.layers
if layers then
for i=1,layers.n do
- local tag = layers[i]
-tag = namespace .. string.gsub(tag," ",":")
-local title = tag
-if trace_links then
- report_link("using layer '%s'",tag)
-end
+ local tag = namespace .. gsub(layers[i]," ",":")
+ local title = tag
+ if trace_links then
+ report_link("using layer '%s'",tag)
+ end
attributes.viewerlayers.define { -- also does some cleaning
tag = tag, -- todo: #3A or so
title = title,