Skip to content

Commit

Permalink
Update get_paper_from_pdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixindelele authored Mar 19, 2023
1 parent dd95bc8 commit 0c2f591
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion get_paper_from_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def get_chapter_names(self,):
if 1 < len(space_split_list) < 5:
if 1 < len(point_split_list) < 5 and (point_split_list[0] in self.roman_num or point_split_list[0] in self.digit_num):
print("line:", line)
chapter_names.append(line)
chapter_names.append(line)
# 这段代码可能会有新的bug,本意是为了消除"Introduction"的问题的!
elif 1 < len(point_split_list) < 5:
print("line:", line)
chapter_names.append(line)

return chapter_names

Expand Down

0 comments on commit 0c2f591

Please sign in to comment.