From: Aleksander Ɓukasz Date: Mon, 2 Sep 2013 13:26:14 +0000 (+0200) Subject: Keep a separate activity counter for every naglowek_podrozdzial tag (PDF) X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/574c6752fa3d59c7dc34c1ecf3ed97ad45de3375?ds=sidebyside;hp=--cc Keep a separate activity counter for every naglowek_podrozdzial tag (PDF) Introduces 6ea7997a702f96dc5ab5f6a03cd7d80dd6a0970a to PDF generator. --- 574c6752fa3d59c7dc34c1ecf3ed97ad45de3375 diff --git a/librarian/pypdf.py b/librarian/pypdf.py index 59b2cc4..9034753 100644 --- a/librarian/pypdf.py +++ b/librarian/pypdf.py @@ -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