diff --git a/src/calibre/ebooks/docx/writer/styles.py b/src/calibre/ebooks/docx/writer/styles.py index dc68abc5db..d3cd6e2040 100644 --- a/src/calibre/ebooks/docx/writer/styles.py +++ b/src/calibre/ebooks/docx/writer/styles.py @@ -314,7 +314,7 @@ class BlockStyle(DOCXStyle): style.append(makeelement(style, 'keepLines', bmap(self.keep_lines))) if self is not normal_style and self.next_style is not None: - style.append(style.makeelement(w('next'), **{w('val'):self.next_style})) + style.append(makeelement(style, 'next', val=self.next_style)) return style