Skip to content

Replacing string with table corrupts DOCX #42

@LucasBornhauser

Description

@LucasBornhauser

Describe the bug
Replacing a string with a table makes DOCX invalid

To Reproduce
Steps to reproduce the behavior:

  1. Command:
  • docxbox rpt table_unordered_list_images.docx Officia "{"table":{"header":["A","B","C"],"content":[["a1","a2","a3"],["b1","b2","b3"],["c1","c2","c3"]]}}"
  1. Resources: table_unordered_list_images.docx

Expected behavior

  • Given string is replaced by table (works)
  • DOCX is valid →DOCX is invalid

Screenshots
Auswahl_059

word_errormessage

Environment:

  • docxBox Version: 0.0.5
  • DOCX Processor: Word 2019

Additional information
Screenshot only shows relevant lines, the actual diff has more lines

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions