From 51b8167decdc6e63367e6a418ab7751f86f94312 Mon Sep 17 00:00:00 2001 From: vicky Date: Thu, 2 Jun 2022 18:16:37 +0200 Subject: [PATCH] implemented header, display and custom_spans, added label_container for _to_container --- src/bootstraparse/modules/export.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/bootstraparse/modules/export.py b/src/bootstraparse/modules/export.py index 1903169..9947032 100644 --- a/src/bootstraparse/modules/export.py +++ b/src/bootstraparse/modules/export.py @@ -245,18 +245,14 @@ if __name__ == '__main__': # pragma: no cover from bootstraparse.modules import parser io_string = StringIO( - """<
> - div>> - article>> - section>>{{zpb}}""" + """- list + - list + - list""" ) test = parser.parse_line(io_string) exm = ExportManager(None, None) cxm = context_mngr.ContextManager(test) cxc = ContextConverter(cxm(), exm) + rich.print(cxm.matched_elements) cxc.process_pile() cxc.print_all()