summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex10
1 files changed, 2 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
index bf70bad24ca..79b8b4bdba9 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
@@ -28,13 +28,7 @@
\edef\dotest{\noexpand\testsp\jobname\space\relax}\dotest
\expandafter\endgroup\fixjobname
\or % callback available, use it
- \directlua{
- callback.register('process_jobname', function(jobname)
- if jobname:find(' ') then
- return '"' .. jobname .. '"'
- else
- return jobname
- end
- end)}
+ % put the function in a separate file for convenience (uses %, ~, etc)
+ \directlua{dofile(assert(kpse.find_file("lualatexquotejobname.lua")))}
\fi}
\endinput