rel
[librarian.git] / src / librarian / builders / txt.py
index 4023814..3f19346 100644 (file)
@@ -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)