comment change skip "mc:Ignorable" attribut and "mc:alternateContent"

concern  location of the comment
"the Ignorable attribute specifies namespaces that can be ignored when they are not understood by the consuming application. Alternate-Content elements specify markup alternatives that can be chosen by an application at run time. For example, Word 2013 can choose only the markup alternative that it recognizes. The complete list of compatibility-rule attributes and alternate-content elements and their details can be found in the specification. " and so  to  implement
This commit is contained in:
sukoi26 2017-02-25 11:50:45 +01:00 committed by GitHub
parent 2daf1dd32a
commit fcb16ed655

View File

@ -2453,6 +2453,8 @@ void xlsx_consumer::read_comments(worksheet ws)
std::vector<std::string> authors;
expect_start_element(qn("spreadsheetml", "comments"), xml::content::complex);
// name space can be ignored
skip_attribute(qn("mc","Ignorable"));
expect_start_element(qn("spreadsheetml", "authors"), xml::content::complex);
while (in_element(qn("spreadsheetml", "authors")))
@ -2478,6 +2480,11 @@ void xlsx_consumer::read_comments(worksheet ws)
ws.cell(cell_ref).comment(comment(read_rich_text(qn("spreadsheetml", "text")), authors.at(author_id)));
expect_end_element(qn("spreadsheetml", "text"));
// specifc name space mc alternateContent element
expect_start_element(qn("mc", "AlternateContent"),xml::content::complex);
skip_remaining_content(qn("mc", "AlternateContent"));
expect_end_element(qn("mc", "AlternateContent"));
expect_end_element(qn("spreadsheetml", "comment"));
}