-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call .write_html in footer cause RecursionError #1222
Comments
Thanks for reporting this, and welcome to fpdf2, @socrateslee ! That's quite an interesting bug you found there. |
@allcontributors please add @socrateslee for bug @socrateslee: would you like to submit a PR to fix this? |
I've put up a pull request to add @socrateslee! 🎉 |
I opened #1247 to fix this. |
Describe the bug
Error details
Call .write_html in footer will result in a recursive call _perform_page_break -> add_page -> footer loop, therefore result in a
RecursionError: maximum recursion depth exceeded
error.Minimal code
Environment
Please provide the following information:
fpdf2
version used:fpdf2 @ git+https://github.com/py-pdf/fpdf2@6f7a207d9c0b7e3f537b6a5f9f25e6ab0b693f8e
The text was updated successfully, but these errors were encountered: