Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
HadronCollider committed Sep 29, 2024
2 parents 04a126d + 788907d commit 155ed2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/main/checks/report_checks/short_sections_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ def __init__(self, file_info, min_section_count=5, min_section_len=20, main_head
style = Style()
style.__dict__.update(prechecked_dict)
self.styles.append(style)

def late_init(self):
self.file.parse_effective_styles()
try:
self.cutoff_line = self.file.pdf_file.get_text_on_page()[2].split("\n")[0]
except:
self.cutoff_line = None
for preset in self.presets:
for _, preset in self.presets.items():
if preset["unify_regex"] is not None:
self.file.unify_multiline_entities(preset["unify_regex"])

Expand Down

0 comments on commit 155ed2f

Please sign in to comment.