Skip to content

Commit

Permalink
Merge pull request #2053 from teovin/cl-api-hardening
Browse files Browse the repository at this point in the history
css update for printable view and href base url update
  • Loading branch information
teovin authored Jul 18, 2024
2 parents 44045c6 + 4c4f6a3 commit dd67276
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/main/legal_document_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ def pull(legal_doc_source, id):
):
case_text = "".join(sub_opinion[content_type] for sub_opinion in sub_opinion_jsons)
if case_text:
case_text = case_text.replace('<?xml version="1.0" encoding="utf-8"?>', "")
case_text = case_text.replace(
'<?xml version="1.0" encoding="utf-8"?>', ""
).replace('href="/opinion', f'href="{settings.COURTLISTENER_BASE_URL}/opinion')
text_source = content_type
break

Expand Down
5 changes: 5 additions & 0 deletions web/static/as_printable_html/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
margin: 0;
}


pre {
white-space: pre-wrap;
}

h1.casebook.title {
font-size: 300%;
}
Expand Down

0 comments on commit dd67276

Please sign in to comment.