File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,17 @@ def add_post_citation(citation: CaseCitation, words: Tokens) -> None:
101
101
citation .metadata .pin_cite = clean_pin_cite (m ["pin_cite" ]) or None
102
102
citation .metadata .extra = (m ["extra" ] or "" ).strip () or None
103
103
citation .metadata .parenthetical = process_parenthetical (m ["parenthetical" ])
104
- if m ["parenthetical" ] is not None and isinstance (citation .metadata .parenthetical , str ):
104
+
105
+ if (
106
+ citation .full_span_end
107
+ and m ["parenthetical" ] is not None
108
+ and isinstance (citation .metadata .parenthetical , str )
109
+ ):
105
110
if len (m ["parenthetical" ]) > len (citation .metadata .parenthetical ):
106
- citation . full_span_end - = len (m ["parenthetical" ]) - len (
111
+ offset = len (m ["parenthetical" ]) - len (
107
112
citation .metadata .parenthetical
108
113
)
114
+ citation .full_span_end = citation .full_span_end - offset
109
115
citation .metadata .year = m ["year" ]
110
116
if m ["year" ]:
111
117
citation .year = get_year (m ["year" ])
You can’t perform that action at this time.
0 commit comments