OSDN Git Service

Fix #37643
[luatex-ja/luatexja.git] / src / patches / lltjcore.sty
index 55c1537..c82b8de 100644 (file)
     \@latex@warning{Reference `#3' on page \thepage \space
               undefined}%
   \else
-    \expandafter#2#1\spacefactor\@m{}% change \null to \spacefactor\@m{}
+    \expandafter#2#1\protect\@setref@{}% change \null to \protect\@setref@{}
   \fi}
+\def\@setref@{\ifhmode\spacefactor\@m\fi}
 \endgroup
 \if@compatibility\else
 \def\verb{\relax\ifmmode\hbox\else\leavevmode\vadjust{}\fi