doctemplate.py: fix buglet reported by Steve Halasz
doctemplate.py: fix buglet reported by Steve Halasz

makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile