diff options
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-check.lua')
-rw-r--r-- | macros/latex/contrib/l3build/l3build-check.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3build/l3build-check.lua b/macros/latex/contrib/l3build/l3build-check.lua index 17e6321787..c90c8fbc5a 100644 --- a/macros/latex/contrib/l3build/l3build-check.lua +++ b/macros/latex/contrib/l3build/l3build-check.lua @@ -537,7 +537,8 @@ local function normalize_pdf(content) binary = false stream = true stream_content = "stream" .. os_newline - elseif not match(line, "^ *$") then + elseif not match(line, "^ *$") and not match(line,"^%%%%") then + line = gsub(line,"%/ID %[<[^>]+><[^>]+>]","/ID [<ID-STRING><ID-STRING>]") new_content = new_content .. line .. os_newline end end @@ -768,6 +769,9 @@ function runtest(name, engine, hide, ext, pdfmode, breakout) -- Break the loop if the result is stable if breakout and i < checkruns then if pdfmode then + if fileexists(testdir .. "/" .. name .. dviext) then + dvitopdf(name, testdir, engine, hide) + end rewrite(pdffile,npffile,normalize_pdf) if compare_pdf(name,engine,true) == 0 then break |