You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set custom margins for page layout in a template. When I generate docx it changes to default one. What I've noticed is that it depends on content. When I remove some content it works properly. If add content back there is issue described.
@klalex I think this is it: when the paragraph that ends a section also holds a {%p %} tag, the section break gets removed with it, so the section takes the next section's margins. That's why it depends on the content. Fixed in docform, the maintained fork, in cvas22/docform#204. If it still happens with your template, an attachment on cvas22/docform#111 would help.
Activity
cvas22 commentedon Nov 25, 2026
@klalex I think this is it: when the paragraph that ends a section also holds a
{%p %}tag, the section break gets removed with it, so the section takes the next section's margins. That's why it depends on the content. Fixed in docform, the maintained fork, in cvas22/docform#204. If it still happens with your template, an attachment on cvas22/docform#111 would help.