summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-not.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-04-27 00:04:07 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-04-27 00:04:07 +0200
commit6b25a7a970ba9553adf8077ef2eecb50a5d77818 (patch)
treef06e40077ba9e55af4bf6cab52313f79f8ea84a8 /tex/context/base/mkxl/strc-not.lmt
parent657457ef4a08c1f000f272e00f654f4064cc37bd (diff)
downloadcontext-6b25a7a970ba9553adf8077ef2eecb50a5d77818.tar.gz
2023-04-26 23:31:00
Diffstat (limited to 'tex/context/base/mkxl/strc-not.lmt')
-rw-r--r--tex/context/base/mkxl/strc-not.lmt6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/strc-not.lmt b/tex/context/base/mkxl/strc-not.lmt
index e05228b2b..2c68cc599 100644
--- a/tex/context/base/mkxl/strc-not.lmt
+++ b/tex/context/base/mkxl/strc-not.lmt
@@ -520,11 +520,13 @@ notes.check_spacing = check_spacing
-- only notes, kind of hardcoded .. bah
-callback.register("build_page_insert", function(index,slot)
+local function action(index,slot)
local state = notes.numbers[index]
if state then
return tonode(newgluespec(check_spacing(index,slot)))
else
return tonode(newgluespec())
end
-end)
+end
+
+callbacks.register("build_page_insert",action,"check spacing around inserts")