diff --git a/web/main/legal_document_sources.py b/web/main/legal_document_sources.py index 8f87ab4d8..29ec42daa 100644 --- a/web/main/legal_document_sources.py +++ b/web/main/legal_document_sources.py @@ -599,8 +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('', "") - .replace('href="/opinion', f'href="{settings.COURTLISTENER_BASE_URL}/opinion')) + case_text = case_text.replace( + '', "" + ).replace('href="/opinion', f'href="{settings.COURTLISTENER_BASE_URL}/opinion') text_source = content_type break