From 5154700c3f0771b0098062c6194bf64d33d07b21 Mon Sep 17 00:00:00 2001 From: Pascal Brunot Date: Tue, 16 Aug 2022 16:12:54 +0200 Subject: [PATCH] fix #911 --- OpenXmlFormats/Wordprocessing/Sdt.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenXmlFormats/Wordprocessing/Sdt.cs b/OpenXmlFormats/Wordprocessing/Sdt.cs index 2f4242cd5..2d79a81a8 100644 --- a/OpenXmlFormats/Wordprocessing/Sdt.cs +++ b/OpenXmlFormats/Wordprocessing/Sdt.cs @@ -454,8 +454,6 @@ internal void Write(StreamWriter sw, string nodeName) sw.Write(">"); if (this.sdtPr != null) this.sdtPr.Write(sw, "sdtPr"); - if (this.sdtContent != null) - this.sdtContent.Write(sw, "sdtContent"); if (this.sdtEndPr != null) { foreach (CT_RPr x in this.sdtEndPr) @@ -463,6 +461,8 @@ internal void Write(StreamWriter sw, string nodeName) x.Write(sw, "sdtEndPr"); } } + if (this.sdtContent != null) + this.sdtContent.Write(sw, "sdtContent"); sw.Write(string.Format("", nodeName)); }