From 574c6752fa3d59c7dc34c1ecf3ed97ad45de3375 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 2 Sep 2013 15:26:14 +0200 Subject: [PATCH] Keep a separate activity counter for every naglowek_podrozdzial tag (PDF) Introduces 6ea7997a702f96dc5ab5f6a03cd7d80dd6a0970a to PDF generator. --- librarian/pypdf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1