[latex3-commits] [git/LaTeX3-latex3-l3build] master: Refine PDF test normalisation (5110c34)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Mar 13 07:49:40 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/5110c34b37ac12bfd4f7c3a60402998c073b90d6

>---------------------------------------------------------------

commit 5110c34b37ac12bfd4f7c3a60402998c073b90d6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Mar 13 06:49:40 2020 +0000

    Refine PDF test normalisation


>---------------------------------------------------------------

5110c34b37ac12bfd4f7c3a60402998c073b90d6
 CHANGELOG.md                | 3 +++
 l3build-check.lua           | 4 +++-
 testfiles-pdf/00-test-2.tpf | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d10b39..541a321 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+- Refinement of PDF test normalisation
+
 ## [2020-03-12]
 
 ### Added
diff --git a/l3build-check.lua b/l3build-check.lua
index c90c8fb..1487d37 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -537,7 +537,9 @@ local function normalize_pdf(content)
       binary = false
       stream = true
       stream_content = "stream" .. os_newline
-    elseif not match(line, "^ *$") and not match(line,"^%%%%") then
+    elseif not match(line, "^ *$") and
+      not match(line,"^%%%%Invocation") and 
+      not match(line,"^%%%%%+") then
       line = gsub(line,"%/ID %[<[^>]+><[^>]+>]","/ID [<ID-STRING><ID-STRING>]")
       new_content = new_content .. line .. os_newline
     end
diff --git a/testfiles-pdf/00-test-2.tpf b/testfiles-pdf/00-test-2.tpf
index b5b6bdf..fea30eb 100644
--- a/testfiles-pdf/00-test-2.tpf
+++ b/testfiles-pdf/00-test-2.tpf
@@ -104,3 +104,4 @@ trailer
  >>
 startxref
 9503
+%%EOF





More information about the latex3-commits mailing list.