[FIX] Bad commit

bzr revid: hda@hda-20090615083917-trbkrswmen8ne0kx
This commit is contained in:
NCH
2009-06-15 14:09:17 +05:30
committed by husen daudi
parent 0b84fe5865
commit 846db679fc
+4 -3
View File
@@ -762,9 +762,10 @@ class _rml_template(object):
story_cnt = 0
for node_story in node_stories:
fis += r.render(node_story)
story_cnt += 1
if story_cnt == len(self.localcontext['objects']):
fis.append(PageCount())
if self.localcontext:
story_cnt += 1
if story_cnt == len(self.localcontext['objects']):
fis.append(PageCount())
fis.append(platypus.PageBreak())
self.doc_tmpl.build(fis)