diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-06-15 21:20:32 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-06-15 21:20:32 +0000 |
commit | c7d052e5102b248468453da945fb8a8f856dda18 (patch) | |
tree | fc9774ad7c981de1b2e17259022e1a5c7d15ed60 /Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex | |
parent | 0ac28632ecbf46fb9ba8891f515e643c70d3293b (diff) |
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
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex | 10 |
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 |