<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 6, 2020 at 10:22 PM Esger Renkema <<a href="mailto:esgerrenkema@gmail.com">esgerrenkema@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear list,<br>
<br>
Using the attr keyword with \hbox or \vbox will cause a fatal error when no<br>
other (any other) attribute has been set before.<br>
<br>
For example, the file<br>
<br>
-----------------------------------------------------------<br>
\attribute 1 = 1<br>
\hbox attr 2 = 2{}<br>
\bye<br>
-----------------------------------------------------------<br>
<br>
compiles without problems, while<br>
<br>
-----------------------------------------------------------<br>
\hbox attr 2 = 2{}<br>
\bye<br>
-----------------------------------------------------------<br>
<br>
gives the following result:<br>
<br>
-----------------------------------------------------------<br>
This is LuaTeX, Version 1.12.0 (TeX Live 2020/Debian)<br>
  restricted system commands enabled.<br>
(./bug.tex<br>
! error:  (nodes): trying to set an attribute fails, case 1<br>
!  ==> Fatal error occurred, no output PDF file produced!<br>
-----------------------------------------------------------<br>
<br>
The cause of this problem problem lies in the do_set_attribute function<br>
defined in texnodes.c: it expects an ‘attr list head, or zero’ but receives<br>
(and tries to return!) an attribute list node instead.<br>
<br>
The attached patch seems to solve the issue.<br>
<br>
Regards,<br>
Esger Renkema<br>
<br>
</blockquote></div><div><br></div><div></div><div>Which format are you using ? plain ?</div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>