[latex3-commits] [git/LaTeX3-latex3-l3build] master: Normalise new \displace lines in (u)pTeX (882fda5)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Mar 7 11:15:04 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/882fda5acbcd189842c34d04452f358dd8cdfc57

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

commit 882fda5acbcd189842c34d04452f358dd8cdfc57
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Mar 7 10:13:42 2018 +0000

    Normalise new \displace lines in (u)pTeX


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

882fda5acbcd189842c34d04452f358dd8cdfc57
 l3build-check.lua |    6 +++++-
 l3build.dtx       |    2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index 4dcede1..4dce34d 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -189,7 +189,11 @@ local function formatlog(logfile, newfile, engine, errlevels)
     -- Remove 'normal' direction information on boxes with (u)pTeX
     line = gsub(line, ",? yoko direction,?", "")
     line = gsub(line, ",? yoko%(math%) direction,?", "")
-    -- Remove the \special line that in DVI mode keeps PDFs comparable
+    -- Remove '\displace 0.0' lines in (u)pTeX
+    if match(line,"^%.*\\displace 0%.0$") then
+      return ""
+     end
+     -- Remove the \special line that in DVI mode keeps PDFs comparable
     if match(line, "^%.*\\special%{pdf: docinfo << /Creator") then
       return ""
     end
diff --git a/l3build.dtx b/l3build.dtx
index f78047f..7d22cef 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -748,6 +748,8 @@
 %     \texttt{\cs{\meta{type}}\meta{...}}
 %   \item Conversion of box numbers in |\show| lines
 %     \texttt{>~\cs{box}\meta{number}=} to \texttt{>~\cs{box}...=}
+%   \item Removal of some (u)p\TeX{} data where it is equivalent to
+%     \pdfTeX{} (|yoko direction|, |\displace 0.0|)
 % \end{itemize}
 %
 % \LuaTeX{} makes several additional changes to the log file. As normalising





More information about the latex3-commits mailing list