X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..73858688886ec363048373f7e8253a33497fe3cd:/src/librarian/builders/txt.py?ds=inline diff --git a/src/librarian/builders/txt.py b/src/librarian/builders/txt.py index 4023814..3f19346 100644 --- 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 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: - 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)