From b9c813ad34169709d9a9f1cffe98cab040e18c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Mon, 22 Nov 2021 22:49:10 +0100 Subject: [PATCH] NFC: Adjust whitespace --- l3build-typesetting.lua | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua index f9805789..1d44a2bc 100644 --- a/l3build-typesetting.lua +++ b/l3build-typesetting.lua @@ -211,32 +211,32 @@ function doc(files) local done = {} for _,typesetfiles in ipairs({typesetdemofiles,typesetfiles}) do for _,glob in pairs(typesetfiles) do - for _,p in ipairs(tree(typesetdir,glob)) do - local path,srcname = splitpath(p.cwd) - local name = jobname(srcname) - if not done[name] then - local typeset = true - -- Allow for command line selection of files - if files and next(files) then - typeset = false - for _,file in pairs(files) do - if name == file then - typeset = true - break - end + for _,p in ipairs(tree(typesetdir,glob)) do + local path,srcname = splitpath(p.cwd) + local name = jobname(srcname) + if not done[name] then + local typeset = true + -- Allow for command line selection of files + if files and next(files) then + typeset = false + for _,file in pairs(files) do + if name == file then + typeset = true + break end end - -- Now know if we should typeset this source - if typeset then - errorlevel = typesetpdf(srcname,path) - if errorlevel ~= 0 then - return errorlevel - else - done[name] = true - end + end + -- Now know if we should typeset this source + if typeset then + errorlevel = typesetpdf(srcname,path) + if errorlevel ~= 0 then + return errorlevel + else + done[name] = true end end end + end end end return 0