From 2c57c1014ae8e44e62021ea2cc36c54352389632 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 14 Mar 2016 20:46:13 +0000 Subject: Implement collapsing using HTML AST --- mammoth/underline.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mammoth/underline.py') diff --git a/mammoth/underline.py b/mammoth/underline.py index bb7d270..4a6b346 100644 --- a/mammoth/underline.py +++ b/mammoth/underline.py @@ -1,5 +1,8 @@ +from . import html + + def element(name): - def convert_underline(html_generator): - html_generator.start(name) + def convert_underline(nodes): + return [html.collapsible_element(name, {}, nodes)] return convert_underline -- cgit v1.2.3