From 6a832017f42493c702a7e938b0ebff35e27e6ae8 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Mon, 26 Jan 2015 12:27:51 +0100 Subject: weirdest bug ever... --- luatexbase-attr.dtx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 4d2cf2a..528bdaf 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -307,7 +307,10 @@ See the aforementioned source file(s) for copyright and licensing information. \wlog{\string#1=\string\luatexattribute\the\allocationnumber}% \else \errmessage{No room for a new \string\attribute}% - \fi} + \fi + \global\unsetluatexattribute#1% if you move this line up a little, bad + % things happen, see #20 + } % \end{macrocode} % % Helper macro |\unsetluatexattribute|. @@ -424,7 +427,6 @@ function new_attribute(name, silent) tex.setcount('global', luatex_sty_counter, last_alloc) end attributes[name] = last_alloc - unset_attribute(name) if not silent then log('luatexbase.attributes[%q] = %d', name, last_alloc) end -- cgit v1.2.3