Skip to content

The default HTML footer teaches %s, which breaks any field a user adds - #121

Merged
xroche merged 2 commits into
masterfrom
footer-named-fields
Aug 14, 2026
Merged

The default HTML footer teaches %s, which breaks any field a user adds#121
xroche merged 2 commits into
masterfrom
footer-named-fields

Conversation

@xroche

@xroche xroche commented Aug 13, 2026

Copy link
Copy Markdown
Owner

The default -%F template used the positional %s%s ... %s form, and one %s anywhere in the string puts the whole template on the engine's legacy positional path. Append {mime} to it and the braces reach every saved page verbatim.

Named fields have been the documented model since xroche/httrack#667 and the pinned engine already substitutes them, so nothing here needs a submodule bump. Existing projects keep the footer they saved; only new projects pick up the new default. The hint under the field showed the same positional form, so it moves too, and a test keeps the two from drifting apart.

One visible difference: {url} carries the scheme, which the old pair could not, because the engine strips it from the host before substituting positionally. New mirrors read Mirrored from http://example.com/a/b.html where they used to read Mirrored from example.com/a/b.html. Host, path and date are unchanged.

xroche and others added 2 commits August 13, 2026 23:00
The default -%F template used the positional %s%s ... %s form, and one %s
anywhere in the string puts the whole template on the engine's legacy
positional path. Append {mime} to it and the braces reach every saved page
verbatim.

Named fields have been the documented model since xroche/httrack#667 and
the pinned engine already substitutes them, so nothing here needs a
submodule bump. Existing projects keep the footer they saved; only new
projects pick up the new default. The hint under the field showed the same
positional form, so it moves too, and a test keeps the two from drifting
apart.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
The two existing assertions pass on any string carrying {url} and {date},
so a default that lost the HTTrack attribution or the comment markers went
unnoticed while the hint tracked it.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche merged commit 8e53c96 into master Aug 14, 2026
6 checks passed
@xroche
xroche deleted the footer-named-fields branch August 14, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant