forked from sheetjs/sheetjs
parse rich strings with bare boolean tags
h/t @giowe fixes #309 note: @sheetjsdev authored commit, original PR date/author used
This commit is contained in:
parent
1b44629a2c
commit
d2b5506dec
@ -42,6 +42,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* ** not required . */
|
||||
case '<shadow':
|
||||
/* falls through */
|
||||
case '<shadow>':
|
||||
case '<shadow/>': break;
|
||||
|
||||
/* 18.4.1 charset CT_IntProperty TODO */
|
||||
@ -53,6 +54,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* 18.4.2 outline CT_BooleanProperty TODO */
|
||||
case '<outline':
|
||||
/* falls through */
|
||||
case '<outline>':
|
||||
case '<outline/>': break;
|
||||
|
||||
/* 18.4.5 rFont CT_FontName */
|
||||
@ -65,6 +67,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<strike':
|
||||
if(!y.val) break;
|
||||
/* falls through */
|
||||
case '<strike>':
|
||||
case '<strike/>': font.strike = 1; break;
|
||||
case '</strike>': break;
|
||||
|
||||
@ -72,6 +75,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<u':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<u>':
|
||||
case '<u/>': font.u = 1; break;
|
||||
case '</u>': break;
|
||||
|
||||
@ -79,6 +83,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<b':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<b>':
|
||||
case '<b/>': font.b = 1; break;
|
||||
case '</b>': break;
|
||||
|
||||
@ -86,6 +91,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<i':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<i>':
|
||||
case '<i/>': font.i = 1; break;
|
||||
case '</i>': break;
|
||||
|
||||
|
@ -4363,6 +4363,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* ** not required . */
|
||||
case '<shadow':
|
||||
/* falls through */
|
||||
case '<shadow>':
|
||||
case '<shadow/>': break;
|
||||
|
||||
/* 18.4.1 charset CT_IntProperty TODO */
|
||||
@ -4374,6 +4375,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* 18.4.2 outline CT_BooleanProperty TODO */
|
||||
case '<outline':
|
||||
/* falls through */
|
||||
case '<outline>':
|
||||
case '<outline/>': break;
|
||||
|
||||
/* 18.4.5 rFont CT_FontName */
|
||||
@ -4386,6 +4388,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<strike':
|
||||
if(!y.val) break;
|
||||
/* falls through */
|
||||
case '<strike>':
|
||||
case '<strike/>': font.strike = 1; break;
|
||||
case '</strike>': break;
|
||||
|
||||
@ -4393,6 +4396,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<u':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<u>':
|
||||
case '<u/>': font.u = 1; break;
|
||||
case '</u>': break;
|
||||
|
||||
@ -4400,6 +4404,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<b':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<b>':
|
||||
case '<b/>': font.b = 1; break;
|
||||
case '</b>': break;
|
||||
|
||||
@ -4407,6 +4412,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<i':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<i>':
|
||||
case '<i/>': font.i = 1; break;
|
||||
case '</i>': break;
|
||||
|
||||
|
6
xlsx.js
6
xlsx.js
@ -4321,6 +4321,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* ** not required . */
|
||||
case '<shadow':
|
||||
/* falls through */
|
||||
case '<shadow>':
|
||||
case '<shadow/>': break;
|
||||
|
||||
/* 18.4.1 charset CT_IntProperty TODO */
|
||||
@ -4332,6 +4333,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
/* 18.4.2 outline CT_BooleanProperty TODO */
|
||||
case '<outline':
|
||||
/* falls through */
|
||||
case '<outline>':
|
||||
case '<outline/>': break;
|
||||
|
||||
/* 18.4.5 rFont CT_FontName */
|
||||
@ -4344,6 +4346,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<strike':
|
||||
if(!y.val) break;
|
||||
/* falls through */
|
||||
case '<strike>':
|
||||
case '<strike/>': font.strike = 1; break;
|
||||
case '</strike>': break;
|
||||
|
||||
@ -4351,6 +4354,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<u':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<u>':
|
||||
case '<u/>': font.u = 1; break;
|
||||
case '</u>': break;
|
||||
|
||||
@ -4358,6 +4362,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<b':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<b>':
|
||||
case '<b/>': font.b = 1; break;
|
||||
case '</b>': break;
|
||||
|
||||
@ -4365,6 +4370,7 @@ var parse_rs = (function parse_rs_factory() {
|
||||
case '<i':
|
||||
if(y.val == '0') break;
|
||||
/* falls through */
|
||||
case '<i>':
|
||||
case '<i/>': font.i = 1; break;
|
||||
case '</i>': break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user