Skip to content

Commit

Permalink
Merge branch 'master' into 477_pack_NIR_2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinaProsche committed Sep 30, 2024
2 parents bc6e857 + 788907d commit d79c931
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 d79c931

Please sign in to comment.