From c7d052e5102b248468453da945fb8a8f856dda18 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Wed, 15 Jun 2011 21:20:32 +0000 Subject: lualatex jobname quoting: mimic web2c's normalize_quotes() Currently done in the Lua version only. git-svn-id: svn://tug.org/texlive/trunk@22993 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex') 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 -- cgit v1.2.3