Skip to content

[WIP] Fix broken HTML tag in simple_report_pdf.tpl#2806

Draft
yyq1043-cloud wants to merge 4 commits into
soxoj:mainfrom
yyq1043-cloud:fix/pdf-template-broken-html-tag
Draft

[WIP] Fix broken HTML tag in simple_report_pdf.tpl#2806
yyq1043-cloud wants to merge 4 commits into
soxoj:mainfrom
yyq1043-cloud:fix/pdf-template-broken-html-tag

Conversation

@yyq1043-cloud

Copy link
Copy Markdown
Contributor

Summary

The simple_report_pdf.tpl template contains a malformed <html> tag on line 1: <html>type="text/css" β€” the > is missing before the stray type attribute, which makes the HTML invalid and can cause rendering issues in PDF report generators.

Fix

Changed <html>type="text/css" to <html>.

The orphaned type="text/css" fragment was not referencing any actual CSS rules (no <style> tag or linked stylesheet exists in the template), so removing it causes no functional regression.

Testing

Verified the template Jinja2 variables ({{ username }}, {{ generated_at }}, etc.) remain intact. The template structure is otherwise unchanged.

yyq1043 added 4 commits June 26, 2026 20:05
Adds quick-access links to web archives (Wayback Machine and archive.is)
in profile URL report blocks, allowing users to see historical snapshots
of profile pages when they still exist but are no longer accessible.

Closes soxoj#247
Expand Cloudflare/anti-bot detection to catch more blocking patterns
and provide clearer error messages for each type.

Addresses the 'filter by errors' TODO from submit mode improvements.
When a site blocks automated access, include the HTTP status codes
from the existing/non-existing account responses in the error message
for easier debugging.
@yyq1043-cloud

Copy link
Copy Markdown
Contributor Author

Hi! I'd like to request review for this PR: Fix broken HTML tag in simple_report_pdf.tpl
Requesting review from: @soxoj
Thank you! πŸ™‚

@soxoj

soxoj commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Thanks! The one-line <html>type="text/css" β†’ <html> fix is good, but this PR also bundles the archive.is/web.archive.org template links and the submit.py blocking-pattern rewrite from #2804 β€” please drop those here and keep only the HTML tag fix. Comments on the blocking-pattern changes are in #2804.

@soxoj soxoj marked this pull request as draft June 29, 2026 13:57
@soxoj soxoj changed the title Fix broken HTML tag in simple_report_pdf.tpl [WIP] Fix broken HTML tag in simple_report_pdf.tpl Jun 29, 2026
@yyq1043-cloud

Copy link
Copy Markdown
Contributor Author

Hi! I'd like to request review for this PR: [WIP] Fix broken HTML tag in simple_report_pdf.tpl
Requesting review from: @soxoj
Thank you! πŸ™‚

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.

2 participants