diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-06-05 21:45:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-06-05 21:45:00 +0200 |
commit | 2a50db46043ea7113c18e87887c371552efd1af9 (patch) | |
tree | 361310c0fafb4cdf8c9849f22ef4c6bb44fd1e94 /tex/context/base/strc-blk.lua | |
parent | 51a2dad390d6229948b4366ad232c662c0e3ea8b (diff) | |
download | context-2a50db46043ea7113c18e87887c371552efd1af9.tar.gz |
beta 2012.06.05 21:45
Diffstat (limited to 'tex/context/base/strc-blk.lua')
-rw-r--r-- | tex/context/base/strc-blk.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/strc-blk.lua b/tex/context/base/strc-blk.lua index d2f25dfb3..791f8f99b 100644 --- a/tex/context/base/strc-blk.lua +++ b/tex/context/base/strc-blk.lua @@ -9,10 +9,9 @@ if not modules then modules = { } end modules ['strc-blk'] = { -- this one runs on top of buffers and structure local type = type -local gmatch, find = string.gmatch, string.find -local lpegmatch = lpeg.match +local find, format, validstring = string.find, string.format, string.valid local settings_to_set, settings_to_array = utilities.parsers.settings_to_set, utilities.parsers.settings_to_array -local allocate, mark = utilities.storage.allocate, utilities.storage.mark +local allocate = utilities.storage.allocate local structures, context = structures, context @@ -45,7 +44,7 @@ function blocks.print(name,data,hide) else context.dostartnormalblock(name) end - context.viafile(data) + context.viafile(data,format("block.%s",validstring(name,"noname"))) if hide then context.dostophiddenblock() else |