-
fix: preserve CT_RPr schema order when setting run properties
发布于
2026-04-05 19:07:40 +00:00 When setting color (or other run properties) on an existing run, the old
element was removed and the new one appended at the end of rPr. This
violated the OOXML CT_RPr sequence which requires color before sz.Add InsertRunPropInSchemaOrder helper that places elements in the correct
CT_RPr position (rFonts > b > i > caps > strike > vanish > color >
spacing > sz > highlight > u). Applied to ApplyRunFormatting and the
table cell ParagraphMarkRunProperties code path.下载附件