X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/82c0860d1520489be56457829d49eb17f165b9cd..f164694b5e7ad5ed5f6d95743f9259bd3a9292bd:/src/librarian/builders/html.py?ds=inline 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'