File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -52,19 +52,15 @@ def generate_branch_report(self, branch: str) -> None:
52
52
or row ["html_anon_2020" ]
53
53
or row ["html" ]
54
54
)
55
+ params = {"clean_steps" : ["html" , "inline_whitespace" ]}
55
56
if text :
56
57
# Remove XML encodings from xml_harvard
57
58
text = re .sub (r"^<\?xml.*?\?>" , "" , text , count = 1 )
58
- opinion_text_is_marked_up = True
59
+ params [ 'markup_text' ] = text or ""
59
60
else :
60
- text = row ["plain_text" ]
61
- opinion_text_is_marked_up = False
61
+ params ['markup_text' ] = row ['plain_text' ]
62
62
63
- plain_text = clean_text (text , ["html" , "inline_whitespace" ])
64
- found_citations = get_citations (
65
- plain_text ,
66
- markup_text = text if opinion_text_is_marked_up else "" ,
67
- )
63
+ found_citations = get_citations (** params )
68
64
69
65
# Get the citation text string from the cite object
70
66
cites = [cite .token .data for cite in found_citations if cite .token ]
You can’t perform that action at this time.
0 commit comments