Skip to content

Commit

Permalink
Extend normalization of line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Feb 8, 2024
1 parent 673c5a9 commit 835050f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.

## [Unreleased]

### Changed
- Extend normalization of line numbers to include those wrapped by LaTeX in
text `on line ...`

## [2024-01-18]

### Added
Expand Down
4 changes: 4 additions & 0 deletions l3build-check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ local function normalize_log(content,engine,errlevels)
-- Two similar cases, Lua patterns mean we need to do them separately
line = gsub(line, "on line %d*", "on line ...")
line = gsub(line, "on input line %d*", "on input line ...")
-- And the case where LaTeX has wrapped
if match(line,"^%(%w+%)%s+%d+%.$") then
line = gsub(line,"%((%w+)%)(%s+)%d+%.", "(%1)%2....")
end
-- Tidy up to ^^ notation
for i = 0, 31 do
line = gsub(line, char(i), "^^" .. char(64 + i))
Expand Down

0 comments on commit 835050f

Please sign in to comment.