Skip to content

Commit d4dc945

Browse files
committed
Add comment in _extract_from_pmc_ocr
1 parent d25693c commit d4dc945

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

indra/literature/pmc_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ def _extract_from_pmc_ocr(tree):
279279
continue
280280

281281
text = "".join(pre.itertext())
282+
# Remove xml BOM and unify newline format
282283
text = text.replace("\ufeff", "")
283284
text = text.replace("\r\n", "\n").replace("\r", "\n")
284285

0 commit comments

Comments
 (0)