commit b43446828c6d241783ae01b2fb85e5efc7a3cab1 parent 3dc3b7a2de87b85af3537ff0ba8516d745b61f3a Author: Isak Lindhé <isak.e.lindhe@gmail.com> Date: Fri, 21 Dec 2018 01:16:45 +0100 removed unneeded functions Diffstat:
M | txtv.py | | | 23 | ----------------------- |
1 file changed, 0 insertions(+), 23 deletions(-)
diff --git a/txtv.py b/txtv.py @@ -35,29 +35,6 @@ def get_page(num) -> list: return rows -def _filter_indentation_spans(rows: list) -> list: - return [ - row for row in rows - if not (row.get_text() == ' ' or 'bgB' in row.attrs['class']) - ] - -def _merge_partial_rows(rows: list) -> list: - ret = [] - itr = iter(rows) - while True: - row = None - try: - row = next(itr) - while len(row.get_text()) < LINEWIDTH: - row.append(next(itr)) - print('DBG:', row) - except StopIteration: - break - if row: - ret.append(row) - return ret - - def show_page(rows:list): until_next_break = LINEWIDTH for row in rows: