fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EPUB: Support for subchapters without chapters.
[librarian.git]
/
src
/
librarian
/
builders
/
txt.py
diff --git
a/src/librarian/builders/txt.py
b/src/librarian/builders/txt.py
index
4023814
..
3f19346
100644
(file)
--- a/
src/librarian/builders/txt.py
+++ b/
src/librarian/builders/txt.py
@@
-88,15
+88,19
@@
class TxtBuilder:
def push_legacy_margin(self, margin, where=None):
self.current_fragments[-1].push_legacy_margin(margin)
def push_legacy_margin(self, margin, where=None):
self.current_fragments[-1].push_legacy_margin(margin)
- def build(self, document, raw_text=False):
+ def build(self, document, raw_text=False
, **kwargs
):
document.tree.getroot().txt_build(self)
meta = document.meta
self.enter_fragment('header')
if meta.translators:
document.tree.getroot().txt_build(self)
meta = document.meta
self.enter_fragment('header')
if meta.translators:
- self.push_text("tłum. ", 'header')
- for translator in meta.translators:
- self.push_text(translator.readable())
+ self.push_text("tłum. ")
+ self.push_text(
+ ", ".join(
+ translator.readable()
+ for translator in meta.translators
+ )
+ )
#builder.push_margin(2)
self.push_legacy_margin(1)
#builder.push_margin(2)
self.push_legacy_margin(1)