diff --git a/src/calibre/ebooks/docx/cleanup.py b/src/calibre/ebooks/docx/cleanup.py index 0f6dbe011a..a46aef50e7 100644 --- a/src/calibre/ebooks/docx/cleanup.py +++ b/src/calibre/ebooks/docx/cleanup.py @@ -82,5 +82,5 @@ def cleanup_markup(root, styles): parent.text = span.text parent.remove(span) for child in span: - parent.append(span) + parent.append(child)