summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2015-01-26 12:27:51 +0100
committerElie Roux <elie.roux@telecom-bretagne.eu>2015-01-26 12:27:51 +0100
commit6a832017f42493c702a7e938b0ebff35e27e6ae8 (patch)
treea8074d28fd61ddee2e2ee6f4b55eadd6edbeef22
parente6f2ee928f26781bc8cd97f6febf365a90dd19fc (diff)
downloadluatexbase-6a832017f42493c702a7e938b0ebff35e27e6ae8.tar.gz
weirdest bug ever...
-rw-r--r--luatexbase-attr.dtx6
1 files 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