[latex3-commits] [git/LaTeX3-latex3-l3build] master: Remove spaces before page number/file loading lines (fixes #78) (5b2c77c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Nov 8 18:38:48 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/5b2c77c384f356e5ea97b2eaa9a97bb7fed4a89a
>---------------------------------------------------------------
commit 5b2c77c384f356e5ea97b2eaa9a97bb7fed4a89a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Nov 8 17:38:48 2018 +0000
Remove spaces before page number/file loading lines (fixes #78)
>---------------------------------------------------------------
5b2c77c384f356e5ea97b2eaa9a97bb7fed4a89a
CHANGELOG.md | 4 ++++
l3build-check.lua | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d4110a..2c433e8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+
+- Strip leading spaces from file loading/page number lines (see #78)
+
## [2018-10-30]
### Fixed
diff --git a/l3build-check.lua b/l3build-check.lua
index 416bfb4..837b635 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -156,8 +156,9 @@ local function normalize_log(content,engine,errlevels)
line = gsub(line,"%d%d%d%d[/%-]%d%d[/%-]%d%d","....-..-..")
line = gsub(line,"v%d+%.?%d?%d?%w?","v...")
end
- -- Deal with the fact that "(.aux)" may have still a leading space
- line = gsub(line, "^ %(%.aux%)", "(.aux)")
+ -- Deal with leading spaces for file and page number lines
+ line = gsub(line,"^ *%[(%d)","[%1")
+ line = gsub(line,"^ *%(","(")
-- Zap .fd lines: drop the first part, and skip to the end
if match(line, "^ *%([%.%/%w]+%.fd[^%)]*$") then
return "","",true
More information about the latex3-commits
mailing list