Merge pull request #303 from sukoi26/dev

error what(): xl/sharedStrings.xml: error: duplicate attribute #290
This commit is contained in:
Crzyrndm 2018-07-13 11:04:21 +12:00 committed by GitHub
commit ed84fe50d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -864,11 +864,7 @@ void xlsx_producer::write_shared_string_table(const relationship & /*rel*/)
{
write_start_element(xmlns, "si");
write_start_element(xmlns, "t");
if (string.runs().front().preserve_space)
{
write_attribute(xml::qname(xmlns_xml, "space"), "preserve");
}
write_characters(string.plain_text(), has_trailing_whitespace(string.plain_text()));
write_characters(string.plain_text(),string.runs().front().preserve_space);
write_end_element(xmlns, "t");
write_end_element(xmlns, "si");