Skip to content

Commit b3c3232

Browse files
Sloader update on _data/OpenXml.json
1 parent 63a3d6a commit b3c3232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎_data/OpenXml.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Data":{"Sdk":{"Events":[{"Id":"9497933255","Type":"IssuesEvent","CreatedAt":"2026-05-15T09:03:58","Actor":"fsberuk","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"opened","RelatedUrl":"https://github.com/dotnet/Open-XML-SDK/issues/2086","RelatedDescription":"Opened issue \"MarkupCompatibilityProcessSettings corrupt document for ligatures set in document text\" (#2086) at dotnet/Open-XML-SDK","RelatedBody":"**Describe the bug**\nOpening a Docx-Document with OpenSettings using MarkupCompatibilityProcessSettings corrupts the document on saving if:\n- the document has a ligature setting (w14:ligatures) in the document text\n- the FileFormatVersions of the MarkupCompatibilityProcessSettings is set to a version that supports ligatures (Office2013 and above)\n- the MarkupCompatibilityProcessMode is set to ProcessAllParts\n\nNo further operation is needed on the document, just opening and save.\n\nIn the original document the document.xml contains a ligature setting (e.g. `<w14:ligatures w14:val=\"standardContextual\"/>`).\nIn the document.xml of the saved document the ligature setting has been changed to `<w14:ligatures/>` which lost its required value attribute and is therefore malformatted.\nSee [Open Specifications - 2.6.1.17 ligatures](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-docx/d0e2eaf6-ed50-445f-ad90-2bd0fa24a442)\n\n**To Reproduce**\n[LigaturesHistorical.docx](https://github.com/user-attachments/files/27794417/LigaturesHistorical.docx)\n\n```\nusing DocumentFormat.OpenXml;\nusing DocumentFormat.OpenXml.Packaging;\n\nnamespace BreakLigatures\n{\n internal class Program\n {\n static void Main(string[] args)\n {\n var inputFullFilePath = args.Length > 0 ? args[0] : throw new ArgumentException(\"Input file path is required as the first argument.\");\n var outputFullFilePath = args.Length > 1 ? args[1] : throw new ArgumentException(\"Output file path is required as the second argument.\");\n\n using var documentStream = new MemoryStream(File.ReadAllBytes(inputFullFilePath));\n\n var openSettings = new OpenSettings()\n {\n MarkupCompatibilityProcessSettings = new MarkupCompatibilityProcessSettings(MarkupCompatibilityProcessMode.ProcessAllParts, FileFormatVersions.Office2013),\n };\n\n using var document = WordprocessingDocument.Open(documentStream, true, openSettings);\n {\n // do nothing, just save\n document.Save();\n }\n\n File.WriteAllBytes(outputFullFilePath, documentStream.ToArray());\n }\n }\n}\n```\nSteps to reproduce the behavior:\n1. Use attached LigaturesHistorical.docx and continue at 8 or proceed to generate own document\n2. Open MS Word and create a new blank document \n3. Insert some text\n4. Select some text\n5. Right click selected text and select \"Font...\" from the menu\n6. In tab \"Advanced\" set \"Ligatures\" setting to a different value\n7. Save document\n8. Run attached program with the document\n9. Open resulting document in MS Word\n10. See error \"Word found unreadable content...\"\n\n**Observed behavior**\nOpening a document with a ligature setting using MarkupCompatibilityProcessSettings and saving the document produces an invalid document.\n\n**Expected behavior**\nOpening a document with a ligature setting using MarkupCompatibilityProcessSettings and saving the document should produce a valid document.\nIf the file format version supports the feature the ligature setting should be retained as is.\n\n**Desktop (please complete the following information):**\n - OS: Windows 10/11\n - Office version 16.0.19929.20136\n - .NET Target: .Net Core 8\n - DocumentFormat.OpenXml Version: 3.3.0 .. 3.5.1\n"},{"Id":"9387955217","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:27","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387955238","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387955232","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387954482","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"opened","RelatedUrl":null,"RelatedDescription":"Opened pull request \"\" (#2083) at dotnet/Open-XML-SDK","RelatedBody":null},{"Id":"9371979455","Type":"PullRequestEvent","CreatedAt":"2026-05-12T16:06:25","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"merged","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342407408","Type":"PullRequestEvent","CreatedAt":"2026-05-12T02:11:09","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342407396","Type":"PullRequestEvent","CreatedAt":"2026-05-12T02:11:09","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342408547","Type":"PullRequestEvent","CreatedAt":"2026-05-04T23:54:12","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"closed","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null}],"ResultType":"GitHubEvent"}},"RunOn":"2026-05-17T03:30:26.2745268Z","RunDurationInMilliseconds":744}
1+
{"Data":{"Sdk":{"Events":[{"Id":"9497933255","Type":"IssuesEvent","CreatedAt":"2026-05-15T09:03:58","Actor":"fsberuk","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"opened","RelatedUrl":"https://github.com/dotnet/Open-XML-SDK/issues/2086","RelatedDescription":"Opened issue \"MarkupCompatibilityProcessSettings corrupt document for ligatures set in document text\" (#2086) at dotnet/Open-XML-SDK","RelatedBody":"**Describe the bug**\nOpening a Docx-Document with OpenSettings using MarkupCompatibilityProcessSettings corrupts the document on saving if:\n- the document has a ligature setting (w14:ligatures) in the document text\n- the FileFormatVersions of the MarkupCompatibilityProcessSettings is set to a version that supports ligatures (Office2013 and above)\n- the MarkupCompatibilityProcessMode is set to ProcessAllParts\n\nNo further operation is needed on the document, just opening and save.\n\nIn the original document the document.xml contains a ligature setting (e.g. `<w14:ligatures w14:val=\"standardContextual\"/>`).\nIn the document.xml of the saved document the ligature setting has been changed to `<w14:ligatures/>` which lost its required value attribute and is therefore malformatted.\nSee [Open Specifications - 2.6.1.17 ligatures](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-docx/d0e2eaf6-ed50-445f-ad90-2bd0fa24a442)\n\n**To Reproduce**\n[LigaturesHistorical.docx](https://github.com/user-attachments/files/27794417/LigaturesHistorical.docx)\n\n```\nusing DocumentFormat.OpenXml;\nusing DocumentFormat.OpenXml.Packaging;\n\nnamespace BreakLigatures\n{\n internal class Program\n {\n static void Main(string[] args)\n {\n var inputFullFilePath = args.Length > 0 ? args[0] : throw new ArgumentException(\"Input file path is required as the first argument.\");\n var outputFullFilePath = args.Length > 1 ? args[1] : throw new ArgumentException(\"Output file path is required as the second argument.\");\n\n using var documentStream = new MemoryStream(File.ReadAllBytes(inputFullFilePath));\n\n var openSettings = new OpenSettings()\n {\n MarkupCompatibilityProcessSettings = new MarkupCompatibilityProcessSettings(MarkupCompatibilityProcessMode.ProcessAllParts, FileFormatVersions.Office2013),\n };\n\n using var document = WordprocessingDocument.Open(documentStream, true, openSettings);\n {\n // do nothing, just save\n document.Save();\n }\n\n File.WriteAllBytes(outputFullFilePath, documentStream.ToArray());\n }\n }\n}\n```\nSteps to reproduce the behavior:\n1. Use attached LigaturesHistorical.docx and continue at 8 or proceed to generate own document\n2. Open MS Word and create a new blank document \n3. Insert some text\n4. Select some text\n5. Right click selected text and select \"Font...\" from the menu\n6. In tab \"Advanced\" set \"Ligatures\" setting to a different value\n7. Save document\n8. Run attached program with the document\n9. Open resulting document in MS Word\n10. See error \"Word found unreadable content...\"\n\n**Observed behavior**\nOpening a document with a ligature setting using MarkupCompatibilityProcessSettings and saving the document produces an invalid document.\n\n**Expected behavior**\nOpening a document with a ligature setting using MarkupCompatibilityProcessSettings and saving the document should produce a valid document.\nIf the file format version supports the feature the ligature setting should be retained as is.\n\n**Desktop (please complete the following information):**\n - OS: Windows 10/11\n - Office version 16.0.19929.20136\n - .NET Target: .Net Core 8\n - DocumentFormat.OpenXml Version: 3.3.0 .. 3.5.1\n"},{"Id":"9387955217","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:27","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387955238","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387955232","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9387954482","Type":"PullRequestEvent","CreatedAt":"2026-05-12T23:35:26","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"opened","RelatedUrl":null,"RelatedDescription":"Opened pull request \"\" (#2083) at dotnet/Open-XML-SDK","RelatedBody":null},{"Id":"9371979455","Type":"PullRequestEvent","CreatedAt":"2026-05-12T16:06:25","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"merged","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342407408","Type":"PullRequestEvent","CreatedAt":"2026-05-12T02:11:09","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342407396","Type":"PullRequestEvent","CreatedAt":"2026-05-12T02:11:09","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"labeled","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null},{"Id":"9342408547","Type":"PullRequestEvent","CreatedAt":"2026-05-04T23:54:12","Actor":"dependabot[bot]","Repository":"dotnet/Open-XML-SDK","Organization":"dotnet","RawContent":null,"RelatedAction":"closed","RelatedUrl":null,"RelatedDescription":null,"RelatedBody":null}],"ResultType":"GitHubEvent"}},"RunOn":"2026-05-18T03:30:29.1246525Z","RunDurationInMilliseconds":1040}

0 commit comments

Comments
 (0)