chrisglass/xhtml2pdf — pull request #161 by hugobranq (2014-03-05 10:18:46+00:00)
Title: maximum recursion depth exceed in "pisaLoop" and "pisaPreLoop"

This fix prevents maximum recursion depth when the two methods ("pisaLoop" and "pisaPreLoop") are called.

If you want reproduce this error, try the following code:

import cStringIO
table = '

Header	%s

'
for x in xrange(7):
table = table % table
table = table % 'Test'
template_file = cStringIO.StringIO(table)

If nothing happen increase the "xrange".

Small improvements/optimisations:
- Cache "pisaTag*" objects
- Removed "path", not used, only for debug
- Speed up some CSS attributes validations