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

[7.5] Failure/Error: parser on editor incorrectly parses custom table properties #1214

Open
askonev opened this issue Oct 17, 2023 · 0 comments
Assignees
Labels

Comments

@askonev
Copy link
Member

askonev commented Oct 17, 2023

I was gathering files with a script for builder and found this scenario

The set shade property (correctly displayed in the document) is not an attribute of the ooxml-parser object

docx.elements[1].properties.table_style.table_style_properties_list
                 .first.table_cell_properties.shade

result

     Failure/Error:
       expect(docx.elements[1].properties.table_style.table_style_properties_list
                  .first.table_cell_properties.shade.color.upcase)
     
     NoMethodError:
       undefined method `color' for nil:NilClass

Looked inside the documents and found that the style id set for the first cell

	<tblStyle w:val="1_634" />

Accordingly, in the styles.xml file we find out that in version 7.5 the supported properties have been significantly extended, but
table column property is written correctly

	<tcPr>
		<shd w:val="clear" w:color="ff0000" w:fill="ff0000" />
		<tcBorders>
		</tcBorders>
	</tcPr>

Here are two files compiled by one script on different versions of the editor for comparison purposes

table_pr_7.4.1.zip
table_pr_7.5.zip

@askonev askonev self-assigned this Oct 17, 2023
@askonev askonev added the bug label Oct 17, 2023
@askonev askonev changed the title Failure/Error: parser on editor version 7.5 incorrectly parses custom table properties [7.5] Failure/Error: parser on editor version 7.5 incorrectly parses custom table properties Oct 17, 2023
@askonev askonev changed the title [7.5] Failure/Error: parser on editor version 7.5 incorrectly parses custom table properties [7.5] Failure/Error: parser on editor incorrectly parses custom table properties Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants