elm.utilities.parse.remove_empty_lines_or_page_footers

remove_empty_lines_or_page_footers(text)[source]

Replace empty lines (potentially with page numbers only) as newlines

Parameters:

text (str) – Text possibly containing empty lines and/or lines with only page numbers.

Returns:

str – Cleaned text with no empty lines.