fix: prevent corrupt docx export for legacy w:pict vml rect content#2905
fix: prevent corrupt docx export for legacy w:pict vml rect content#2905harbournick merged 2 commits intomainfrom
Conversation
|
Status: PASS The structural OOXML is sound. Here's what I checked and found:
The newly emitted structure is valid:
The One thing worth noting, though not a spec violation: the |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
🎉 This PR is included in vscode-ext v2.3.0-next.44 |
|
🎉 This PR is included in @superdoc-dev/react v1.2.0-next.42 The release is available on GitHub release |
|
🎉 This PR is included in template-builder v1.6.0-next.7 The release is available on GitHub release |
|
🎉 This PR is included in esign v2.3.0-next.44 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.28.0-next.7 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.8.0-next.7 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.6.0-next.43 |
Linear: SD-2652
Fixes issue where import→export of DOCX files containing legacy
w:pict/v:rectcould produce invalidmc:AlternateContentwith emptyw:drawing, causing Word corruption errors.What changed:
contentBlock(vmlAttributes,style) to avoid attribute loss during PM normalization.translateContentBlock()socontentBlockwith VML markers exports viaw:pict/v:rectpath.mc:AlternateContentdecode:nullfor missing/invalid drawing content,mc:Fallbackfor valid alternate-content branches.