From 87cccc4e07c9f2be79134e201b85ab0f552b14bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Mon, 29 Mar 2010 06:15:22 +0200
Subject: Fix attr (\luatebase@directlua expands in two steps).

---
 luatexbase-attr.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'luatexbase-attr.dtx')

diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 1d66d5a..3d88b3a 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -278,9 +278,10 @@ See source file '\inFileName' for details.
     \allocationnumber\lltxb@attribute@alloc
     \global\luatexattributedef#1=\allocationnumber
     \unsetluatexattribute#1%
-    \begingroup\escapechar\m@ne \expandafter\endgroup
+    \begingroup\escapechar\m@ne
     \luatexbase@directlua{luatexbase.attributedef_from_tex(
       '\luatexluaescapestring{\string#1}', '\number\allocationnumber')}%
+    \endgroup
     \wlog{\string#1=\string\luatexattribute\the\allocationnumber}%
   \else
     \errmessage{No room for a new \string\attribute}%
-- 
cgit v1.2.3

