Keep a separate activity counter for every naglowek_podrozdzial tag (PDF)
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Sep 2013 13:26:14 +0000 (15:26 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Sep 2013 13:26:14 +0000 (15:26 +0200)
Introduces 6ea7997a702f96dc5ab5f6a03cd7d80dd6a0970a

to PDF generator.

librarian/pypdf.py

index 59b2cc4..9034753 100644 (file)
@@ -174,7 +174,6 @@ class EduModule(Xmill):
     handle_naglowek_czesc = \
     handle_naglowek_listy = \
     handle_naglowek_osoba = \
-    handle_naglowek_podrozdzial = \
     handle_naglowek_scena = \
     handle_nazwa_utworu = \
     handle_nota = \
@@ -205,6 +204,9 @@ class EduModule(Xmill):
         return self.handle_texcommand(element)
     handle_naglowek_rozdzial.unmuter = True
 
+    def handle_naglowek_podrozdzial(self, element):
+        self.activity_counter = 0
+        return self.handle_texcommand(element)
 
     def handle_uwaga(self, _e):
         return None