Skip to content

Commit f2ecabc

Browse files
committed
Disable blanking out of reference content. (#16)
1 parent 5b256a6 commit f2ecabc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/parserindexer/journalparser.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ def parse_file(self, path):
8282

8383
# 6. Move references to their own field (references)
8484
refs = extract_references(content_ann)
85-
for ref_id in refs: # preserve length; insert whitespace
86-
content_ann = content_ann.replace(refs[ref_id],
87-
' ' * len(refs[ref_id]))
85+
# This does weird things to citations, not just references,
86+
# so disable it for now.
87+
#for ref_id in refs: # preserve length; insert whitespace
88+
# content_ann = content_ann.replace(refs[ref_id],
89+
# ' ' * len(refs[ref_id]))
8890
parsed['references'] = refs.values()
8991

9092
# Store the modified content

0 commit comments

Comments
 (0)