Blank Page Added Before "Text Editor" Content in Print View When Using Jinja

I am using Jinja to fetch and display content from a “Text Editor” field in a custom print format in ERPNext/Frappe. However, if the content from the “Text Editor” field is too long to fit on one page, the system adds a blank page before displaying the content, even if the content should fit on the same page initially.

The content of the “Text Editor” field should appear immediately after the previous section, flowing across multiple pages as needed, without adding a blank page.

How can I prevent this unnecessary blank page from being added before the “Text Editor” content?

Same Topics: Blank Page Added Before "Text Editor" Content in Print View When Using Jinja - #2 by NCP