summaryrefslogtreecommitdiff
path: root/tex/context
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2013-03-31 16:05:07 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2013-03-31 16:05:07 +0200
commitd73d5ea6abf0cbfd963844def345296dc0003305 (patch)
tree8909ea4c62a5a00771667bf91079c549afaf461d /tex/context
parent7982e8ed26a2b08754ac2adfa755a4108950bf53 (diff)
downloadenigma-d73d5ea6abf0cbfd963844def345296dc0003305.tar.gz
circumvent coupling of pre_lbrk and hpack filters in Context
Diffstat (limited to 'tex/context')
-rw-r--r--tex/context/third/enigma/enigma.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/third/enigma/enigma.lua b/tex/context/third/enigma/enigma.lua
index ce2bc3d..b10b067 100644
--- a/tex/context/third/enigma/enigma.lua
+++ b/tex/context/third/enigma/enigma.lua
@@ -68,6 +68,7 @@ libraries.
\stopparagraph
--ichd]]--
+local get_debug_info = debug.getinfo
local ioread = io.read
local iowrite = io.write
local mathfloor = math.floor
@@ -1556,9 +1557,15 @@ local new_callback = function (machine, name)
mod_5 = 0
if format_is_context == true then
head = c
- else
- head = a
+ local cbk_env = get_debug_info(4) -- no getenv in lua 5.2
+ --inspect(cbk_env)
+ if cbk_env.func == nodes.processors.pre_linebreak_filter then
+ -- how weird is that?
+ return aux(head)
+ end
+ return head
end
+ head = a
return aux(head)
end