Keep a description's headings, bullets and paragraphs, and draw them in the reader

The readers flattened a posting's HTML into one line with strip_html, so
sections and bullets ran together. _shared.html_text gives a line per
paragraph, '• ' before a list item and '## ' before a heading; every
reader's description goes through it, sections read per role get their
own headings, and the reader pane draws the lines as h3, ul and p.
Excerpts leave the marks out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 21:40:12 +02:00
1 parent 17e7615599
commit c497fe965d
44 files changed
+300 -147

No files matched your search

+1 -1
View File
@@ -195,7 +195,7 @@ def test_detail_appends_the_responsibilities_and_qualifications_where_filled() -
data["items"][0]["ExternalResponsibilitiesStr"] = "<ul><li>Run the desk</li></ul>"
data["items"][0]["ExternalQualificationsStr"] = "<p>Five years &amp; more</p>"
got = oracle.detail(_detail_get(json.dumps(data).encode(), []), SLUG, {"source_id": "24594"})
assert got["description"].endswith(" Run the desk Five years & more")
assert got["description"].endswith("\n## Responsibilities\n\u2022 Run the desk\n## Qualifications\nFive years & more")
def test_detail_of_a_role_no_longer_open_has_nothing_to_read() -> None: