fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove legacy code for txt.
[librarian.git]
/
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
(file)
--- 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
}
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)