diff --git a/src/global/getRowlen.js b/src/global/getRowlen.js index 441ff49..6df06c3 100644 --- a/src/global/getRowlen.js +++ b/src/global/getRowlen.js @@ -893,187 +893,156 @@ function getCellTextInfo(cell , ctx, option){ } else{ value = value.toString(); - let splitValue = value.replace(/\r\n/g, "_x000D_").replace(/ /g, "_x000D_").replace(/\r/g, "_x000D_").replace(/\n/g, "_x000D_"); - let splitArr = splitValue.split("_x000D_"); - for(let x=0, len=splitArr.length;xcellHeight && text_all_split[splitIndex]!=null && i!= value.length){ - // console.log("cut",anchor, i , str); - - if(spaceOrTwoByte!=null && spaceOrTwoByte.indexcellHeight && text_all_split[splitIndex]!=null && i!= value.length){ + // console.log("cut",anchor, i , str); - splitIndex +=1; + if(spaceOrTwoByte!=null && spaceOrTwoByte.indexcellWidth && text_all_split[splitIndex]!=null && i!= value.length){ - // console.log(spaceOrTwoByte, i, anchor); - if(spaceOrTwoByte!=null && spaceOrTwoByte.indexcellWidth && text_all_split[splitIndex]!=null && i!= value.length){ + // console.log(spaceOrTwoByte, i, anchor); + if(spaceOrTwoByte!=null && spaceOrTwoByte.index