diff options
author | Marius <mariausol@gmail.com> | 2013-03-15 20:40:14 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-03-15 20:40:14 +0200 |
commit | 792b2ca2d206c2c90cc9967a8ae4916f53f902d7 (patch) | |
tree | 61a6b50fcad361326d0a7e6c305ab9d291d699e7 /tex/context/base/attr-lay.lua | |
parent | 5649bfe8b7ccdd5a8b02951fc9f6a0dbbdf48256 (diff) | |
download | context-792b2ca2d206c2c90cc9967a8ae4916f53f902d7.tar.gz |
beta 2013.03.15 19:22
Diffstat (limited to 'tex/context/base/attr-lay.lua')
-rw-r--r-- | tex/context/base/attr-lay.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/attr-lay.lua b/tex/context/base/attr-lay.lua index 9762bb202..4bcc70b0c 100644 --- a/tex/context/base/attr-lay.lua +++ b/tex/context/base/attr-lay.lua @@ -13,7 +13,6 @@ if not modules then modules = { } end modules ['attr-lay'] = { -- maybe use backends.registrations here too local type = type -local format = string.format local insert, remove = table.insert, table.remove local attributes, nodes, utilities, logs, backends = attributes, nodes, utilities, logs, backends @@ -22,6 +21,7 @@ local tex = tex local allocate = utilities.storage.allocate local setmetatableindex = table.setmetatableindex +local formatters = string.formatters local report_viewerlayers = logs.reporter("viewerlayers") @@ -69,7 +69,7 @@ local listwise = viewerlayers.listwise local registered = viewerlayers.registered local scopes = viewerlayers.scopes -local template = "%s" +local f_stamp = formatters["%s"] storage.register("attributes/viewerlayers/registered", registered, "attributes.viewerlayers.registered") storage.register("attributes/viewerlayers/values", values, "attributes.viewerlayers.values") @@ -163,7 +163,7 @@ local function register(name,lw) -- if not inimode redefine data[n] in first cal if not enabled then viewerlayers.enable(true) end - local stamp = format(template,name) + local stamp = f_stamp(name) local n = registered[stamp] if not n then n = #values + 1 |