-
Notifications
You must be signed in to change notification settings - Fork 50
Description
When I try to generate a PDF the [reportsGenerator:dataForReport:...] method keeps getting called infinitely.
Each tag in my template gets requested, and then they all get requested again, and again, etc...
Its possible that this is because my template is not being parsed correctly or that I have made some type of syntax mistake, but I can't tell. Nothing is jumping out at me.
Is there anything I can try to do to find the source of the problem?
UPDATE:
I gutted my HTML template and then started adding HTML back piece by piece. I got the template working for most of my HTML but as I'm adding lines back in, it suddenly stops working.
The only conclusion I can draw at this moment is that there is some kind of max length that the template parser can't handle. For example, as I'm testing the template right now, this little snippet is fine:
<tr>
more
</tr>
but the template begins looping infinitely when I change that snippet to:
<tr>
<td>more</td>
</tr>
The template works with 4352 characters in it. The template fails with 4353 characters in it.
so there is something very strange going on here.
UPDATE 2:
I was able to add more content to the template without it breaking. I can't figure out why it's failing. Looks like generating more than 1 page worth of material causes an infinite loop.