Parse text:s elements containing text:c attribute

Fixes #835
This commit is contained in:
Oliver Yeoh 2017-10-10 12:14:53 +08:00
parent c88f83940c
commit 6d741ebd3a
3 changed files with 3 additions and 3 deletions

@ -2,7 +2,7 @@
var parse_content_xml = (function() {
var parse_text_p = function(text, tag) {
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<[^>]*>/g,""));
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g, function($$,$1) { return Array(parseInt($1)+1).join(" "); }).replace(/<[^>]*>/g,""));
};
var number_formats = {

@ -17004,7 +17004,7 @@ function table_to_book(table/*:HTMLElement*/, opts/*:?any*/)/*:Workbook*/ {
var parse_content_xml = (function() {
var parse_text_p = function(text, tag) {
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<[^>]*>/g,""));
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g, function($$,$1) { return Array(parseInt($1)+1).join(" "); }).replace(/<[^>]*>/g,""));
};
var number_formats = {

@ -16906,7 +16906,7 @@ function table_to_book(table, opts) {
var parse_content_xml = (function() {
var parse_text_p = function(text, tag) {
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<[^>]*>/g,""));
return unescapexml(text.replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g, function($$,$1) { return Array(parseInt($1)+1).join(" "); }).replace(/<[^>]*>/g,""));
};
var number_formats = {