mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #303 from sukoi26/dev
error what(): xl/sharedStrings.xml: error: duplicate attribute #290
This commit is contained in:
commit
ed84fe50d2
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user