mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #156] [MERGED] [renderer] Fix rendered post look: title, numbering, escaping, clean markup #160
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/156
Author: @Glitchy-Sheep
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @Glitchy-Sheep
Base:
main← Head:fix/html-render-cleanup📝 Commits (5)
ac138adfix: Clean up and escape the rendered HTML9721525fix: Use the post title as the browser tab title6aad2e1fix: Keep the author's list numbering in rendered posts861d224fix: Clean up list and text template markup2573f41fix: Polish rendered post output and changelog the render fixes📊 Changes
15 files changed (+218 additions, -473 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
boosty_downloader/src/application/mappers/html_converter.py(+5 -2)📝
boosty_downloader/src/application/mappers/list.py(+10 -1)📝
boosty_downloader/src/application/use_cases/download_single_post.py(+7 -1)📝
boosty_downloader/src/domain/post_data_chunks.py(+3 -2)📝
boosty_downloader/src/infrastructure/html_generator/renderer.py(+37 -10)📝
boosty_downloader/src/infrastructure/html_generator/templates/audio.html(+1 -1)📝
boosty_downloader/src/infrastructure/html_generator/templates/base.html(+1 -1)➕
boosty_downloader/src/infrastructure/html_generator/templates/file.html(+1 -0)📝
boosty_downloader/src/infrastructure/html_generator/templates/list.html(+18 -34)📝
boosty_downloader/src/infrastructure/html_generator/templates/text.html(+12 -24)📝
boosty_downloader/src/infrastructure/html_generator/templates/video.html(+2 -2)📝
test/fixtures/rendered_post.html(+36 -388)📝
test/unit/html_generator/html_templates_test.py(+25 -7)➕
test/unit/mappers/list_style_test.py(+55 -0)📄 Description
[renderer] Fix rendered post look: title, numbering, escaping, clean markup
Summary
Six renderer problems fixed in one pass (stacked on #155, merge order: #153 -> #154 -> #155 -> this). Every fix is visible as a golden-file diff - the goldens from #155 were added for exactly this purpose.
Problem
<li>/</li>)<ol>template branch was deadtype="video/mp4"- external downloads can be webm/mkvFix
trim_blocks/lstrip_blockson the Jinja environment, re-flowedtext.htmlandlist.html: inline styles render as one line, nested lists indent classically (content at +4, close tags aligned), empty chunks leave no blank linesrender_htmltakes a requiredpage_title; the use case passes the post title (folder name for empty titles)Verification
task cigreen: checks, 155 unit tests + 1 strict xfail, build; live integration tests 6/6 (one transient network timeout on first run, curl failed at the same moment, retry passed in 2s)<ol>, clean indentationNotes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.