summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-06-15 22:08:46 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-06-15 22:08:46 +0000
commit3811eef7e05bc725b54d6a0590c7a35d55e64a32 (patch)
tree3da3803f651ab1b39372fe66262301ab827f5248 /Master/texmf-dist/tex/latex
parent09e10390fb69feee4980866963ec8338e6c145a4 (diff)
lualatexquotejobname: fix stupid mistakes in last commit
(why the hell didn't I test before commiting? need to sleep now) git-svn-id: svn://tug.org/texlive/trunk@22998 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
index 779ea32b5cb..cea56d72bcd 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
@@ -25,11 +25,12 @@
%
% This file is inputed after latex.ltx.
%
+\makeatletter
\everyjob\expandafter{\the\everyjob
\ifcase\directlua{
tex.sprint(callback.list().process_jobname == nil and 0 or 1)}\relax
% no callback, do what we can in TeX
- \begingroup \makeatletter
+ \begingroup
% strip quotes from job name and count them
\def\stripquotes#1"#2\@nil{%
\edef\clean{\clean#1}%
@@ -51,11 +52,12 @@
\else
\edef\fixjobname{\def\noexpand\jobname{"\clean"}}%
\fi}%
- \edef\dotest{\noexpand\testsp\clean\space\relax}\dotest
+ \edef\dotest{\noexpand\testsp\clean\space\noexpand\@nil}\dotest
% do it after closing the group
\expandafter\endgroup\fixjobname
\or % callback available, use it
% function in a separate file for convenience (uses %, ~, etc)
\directlua{dofile(assert(kpse.find_file("lualatexquotejobname.lua")))}
\fi}
+\makeatother
\endinput