Added the ability to open docx files with ST_Shd (Shading Patterns) without val attribute.
BUG: 486371
Some files have Shading Patterns without val
attribute, so DocxXmlDocumentReader
can't read it and marks all files as not recognized format. E.g. in attached file we have next line: <w:shd w:color="ffffff"/>
as we don't have any fill patterns here, I guess we should use nil
value.
Unfortunately I don't find any information about what value should be used as fallback value in this case, but it stands first in enumeration in WordprocessingML (wml.xsd
) and logically it fits here.
By the way, this attached file is a severe case. For some unknown reason Calligra adds additional empty page at the beginning of the document. We can't delete it. And if we select all (ctrl+a), delete and start typing something then every typed symbol will add new empty page. Very strange things.