From a95642771b5b92f47491360fc9844cd171f71cde Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 15 May 2016 22:11:39 +0000
Subject: luatexja (15may16)

git-svn-id: svn://tug.org/texlive/trunk@41164 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty')

diff --git a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty
index 2d577fc687a..67d292381af 100644
--- a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty
+++ b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty
@@ -171,11 +171,6 @@
   \unless\ifnum\ltjgetparameter{direction}=3
     \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
   \else\hbox{\yoko \@textsuperscript{\normalfont\@thefnmark}}\fi}
-\def\@footnotemark{\leavevmode
-  \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
-  \unless\ifnum\ltjgetparameter{direction}=3 \@makefnmark
-  \else\hbox to\z@{\hskip-.25\zw\raise.9\zh\@makefnmark\hss}\fi
-  \ifhmode\spacefactor\@x@sf\fi\relax}
 \begingroup
 \@ifpackageloaded{hyperref}
   {\def\ltj@setrefprefix{real}}
@@ -202,6 +197,10 @@
 \newcount\minute
 %%% etoolbox is loaded by everyhook
 \ifltj@everyhook@avail
+  \patchcmd{\@footnotemark}{\@makefnmark}{%
+    \unless\ifnum\ltjgetparameter{direction}=3 \@makefnmark%
+    \else\hbox to\z@{\hskip-.25\zw\raise.9\zh\@makefnmark\hss}\fi%
+  }{}{}
   \patchcmd{\@tabular}{\leavevmode}{\leavevmode\null}{}{}
   \apptocmd{\endtabular}{\null}{}{}
   \expandafter \let \csname endtabular*\endcsname = \endtabular
-- 
cgit v1.2.3

