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 get an error when following the 2.6.3 Adding “zoned” header content section of the latest (0.8.9) tutorial with the 0.8.10 release. The error is "ValueError: document already contains style 'Header'". Steps to reproduce:
from docx import Document from docx.enum.style import WD_STYLE_TYPE document = Document() styles = document.styles style = styles.add_style("Header", WD_STYLE_TYPE.PARAGRAPH)
Apparently, the default docx template now contains a header style, where it did not previously.