X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/011b98a4661b754a0789ae78e145437b5b86e5fe..ddeba8a8483dc73d0103030afe46fc5bce51d8a0:/src/librarian/elements/tools/__init__.py diff --git a/src/librarian/elements/tools/__init__.py b/src/librarian/elements/tools/__init__.py index c4820b1..69a26ea 100644 --- a/src/librarian/elements/tools/__init__.py +++ b/src/librarian/elements/tools/__init__.py @@ -70,3 +70,13 @@ class Tab(WLElement): } get_epub_attr = get_html_attr + + def txt_build(self, builder): + szer = self.get('szer', '1').strip() + if szer.endswith('em'): + szer = szer[:-2] + try: + szer = int(szer) + except: + szer = 1 + builder.push_text(' ' * 4 * szer)