Carlos-Francisco Méndez-Cruz

Prepare abstracts

...@@ -74,6 +74,7 @@ if __name__ == "__main__": ...@@ -74,6 +74,7 @@ if __name__ == "__main__":
74 line = reTags.sub('', line) 74 line = reTags.sub('', line)
75 result = rePmid.match(line) 75 result = rePmid.match(line)
76 if result: 76 if result:
77 + line = rePmid.sub(line, '')
77 with open(os.path.join(options.outputPath, result.group(1) + ".txt"), "w", encoding="utf-8", errors="replace") as oFile: 78 with open(os.path.join(options.outputPath, result.group(1) + ".txt"), "w", encoding="utf-8", errors="replace") as oFile:
78 oFile.write(line) 79 oFile.write(line)
79 else: 80 else:
......