fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
https
[librarian.git]
/
librarian
/
pyhtml.py
diff --git
a/librarian/pyhtml.py
b/librarian/pyhtml.py
index
163d11c
..
38e0829
100644
(file)
--- a/
librarian/pyhtml.py
+++ b/
librarian/pyhtml.py
@@
-131,7
+131,7
@@
class EduModule(Xmill):
counter = self.activity_counter
counter = self.activity_counter
- if element.getnext().tag == 'aktywnosc' or (
self.activity_last
and self.activity_last.getnext() == element):
+ if element.getnext().tag == 'aktywnosc' or (
len(self.activity_last)
and self.activity_last.getnext() == element):
counter_html = """<span class="act_counter">%(counter)d.</span>""" % {'counter': counter}
else:
counter_html = ''
counter_html = """<span class="act_counter">%(counter)d.</span>""" % {'counter': counter}
else:
counter_html = ''