From 44eada9d05418b25acd5df41ff1cc9e475eaea78 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 2 Mar 2014 18:04:32 +0100 Subject: do not delete temporary files when --debug is specified --- src/rst_parser.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/rst_parser.lua b/src/rst_parser.lua index 96c14d4..d55924e 100644 --- a/src/rst_parser.lua +++ b/src/rst_parser.lua @@ -1562,12 +1562,11 @@ local get_tmpfile = function (category) end cnt = cnt + 1 tempfile_count[category] = cnt - return luatex.registertempfile ( - stringformat ("%s_rst-%s-%d.tmp", - tex.jobname, - category, - cnt) - ) + local filename = stringformat ("%s_rst-%s-%d", + tex.jobname, category, cnt) + return luatex.registertempfile (filename, + true, + (helpers.rst_debug == true)) --- for debugging generated code end -- cgit v1.2.3