[latex3-commits] [git/LaTeX3-latex3-l3build] master: Normalise /ID lines in PDF comparisons (843729d)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Mar 11 23:04:01 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/843729d58a18d9fb5eb38201aad4d6d138f5944d

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

commit 843729d58a18d9fb5eb38201aad4d6d138f5944d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Mar 11 22:04:01 2020 +0000

    Normalise /ID lines in PDF comparisons


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

843729d58a18d9fb5eb38201aad4d6d138f5944d
 CHANGELOG.md      | 3 +++
 l3build-check.lua | 1 +
 2 files changed, 4 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 647cf38..9ea8626 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,9 @@ this project uses date-based 'snapshot' version identifiers.
 ### Added
 - Option `ps2pdfopt`
 
+### Changed
+- Normalise `/ID` lines in PDF comparisons
+
 ### Fixed
 - Enable `cleandir()` recursively
 
diff --git a/l3build-check.lua b/l3build-check.lua
index 80eab2a..80ee2e1 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -538,6 +538,7 @@ local function normalize_pdf(content)
       stream = true
       stream_content = "stream" .. os_newline
     elseif not match(line, "^ *$") then
+      line = gsub(line,"%/ID %[<[^>]+><[^>]+>]","/ID [<ID-STRING><ID-STRING>]")
       new_content = new_content .. line .. os_newline
     end
   end





More information about the latex3-commits mailing list.