Commit 11170ec2 authored by zhengke's avatar zhengke

Merge branch 'master' of http://gitlab.oytour.com/viitto/pptist

parents b70812ac 40a45321
...@@ -472,7 +472,8 @@ const GetTripTemplate = async () =>{ ...@@ -472,7 +472,8 @@ const GetTripTemplate = async () =>{
SlidesData.forEach((x: any) => { SlidesData.forEach((x: any) => {
x.elements.forEach((y:any)=>{ x.elements.forEach((y:any)=>{
if(y.content && y.defaultFontName && y.defaultFontName.includes(',')) y.defaultFontName = y.defaultFontName.split(',')[0] if(y.content && y.defaultFontName && y.defaultFontName.includes(',')) y.defaultFontName = y.defaultFontName.split(',')[0]
if(y.contentStr && y.content && y.content.includes(y.contentStr)){ if(y.content && y.content.includes(" ")) y.content=y.content.replaceAll(' ','')
if(y.contentStr && !y.contentStr.includes('<p') && y.content && y.content.includes(y.contentStr)){
let temp = HtmlUtil.htmlEncodeByRegExp(y.contentStr) let temp = HtmlUtil.htmlEncodeByRegExp(y.contentStr)
if(temp!=y.contentStr) { if(temp!=y.contentStr) {
y.content = y.content.replace(y.contentStr,temp) y.content = y.content.replace(y.contentStr,temp)
...@@ -730,7 +731,11 @@ const sellGetTripTemplate = async () =>{ ...@@ -730,7 +731,11 @@ const sellGetTripTemplate = async () =>{
SlidesData.forEach((x,i)=>{ SlidesData.forEach((x,i)=>{
x.elements.forEach((y:any)=>{ x.elements.forEach((y:any)=>{
if(y.content && y.defaultFontName && y.defaultFontName.includes(',')) y.defaultFontName = y.defaultFontName.split(',')[0] if(y.content && y.defaultFontName && y.defaultFontName.includes(',')) y.defaultFontName = y.defaultFontName.split(',')[0]
if(y.contentStr && y.content && y.content.includes(y.contentStr)){ if(y.content && (y.content.includes('&amp;nbsp;'))){
y.content = y.content.replaceAll('&amp;nbsp;','&nbsp;')
//y.content=y.content.replaceAll('&nbsp;',' ')
}
if(y.contentStr && !y.contentStr.includes('<p') && y.content && y.content.includes(y.contentStr)){
let temp = HtmlUtil.htmlEncodeByRegExp(y.contentStr) let temp = HtmlUtil.htmlEncodeByRegExp(y.contentStr)
if(temp!=y.contentStr) { if(temp!=y.contentStr) {
y.content = y.content.replace(y.contentStr,temp) y.content = y.content.replace(y.contentStr,temp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment