X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/82c0860d1520489be56457829d49eb17f165b9cd..23d025c8875cca1404f274aca7170c9db5e980e7:/src/librarian/builders/html.py?ds=sidebyside diff --git a/src/librarian/builders/html.py b/src/librarian/builders/html.py index 66db675..e6530a5 100644 --- a/src/librarian/builders/html.py +++ b/src/librarian/builders/html.py @@ -45,6 +45,11 @@ class TreeBuilder: else: cursor.text = (cursor.text or '') + text + def simple_element(self, tag, text='', attrib=None): + self.start_element(tag, attrib) + self.push_text(text) + self.end_element() + class HtmlBuilder(TreeBuilder): build_method_fn = 'html_build'