Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing string with table corrupts DOCX #42

Open
LucasBornhauser opened this issue May 28, 2020 · 2 comments
Open

Replacing string with table corrupts DOCX #42

LucasBornhauser opened this issue May 28, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request moderate

Comments

@LucasBornhauser
Copy link
Contributor

LucasBornhauser commented May 28, 2020

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

@kstenschke
Copy link
Member

@LucasBornhauser Can the resulting docx be opened e.g. in FreeOffice TextMaker w/o corruption message?

@LucasBornhauser
Copy link
Contributor Author

LucasBornhauser commented May 28, 2020

Yes, all other (tested) DOCX processor manage to open the DOCX:

  • Abi Word: Document can be opened, table borders are not displayed, but the content is
  • LibreOffice: Document can be opened, no table or table content is displayed
  • FreeOffice 2018 TextMaker: Document can be opened, table and content are displayed

No error message is given upon opening the file with either one of these applications

@LucasBornhauser LucasBornhauser removed their assignment May 28, 2020
@kstenschke kstenschke added moderate enhancement New feature or request labels Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request moderate
Projects
None yet
Development

No branches or pull requests

2 participants