diff --git a/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/service/picturestemplatebuilding/impl/PicturesTemplateBuildingServiceImpl.java b/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/service/picturestemplatebuilding/impl/PicturesTemplateBuildingServiceImpl.java index 47ea565..58739d3 100644 --- a/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/service/picturestemplatebuilding/impl/PicturesTemplateBuildingServiceImpl.java +++ b/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/service/picturestemplatebuilding/impl/PicturesTemplateBuildingServiceImpl.java @@ -275,8 +275,8 @@ public class PicturesTemplateBuildingServiceImpl extends DefaultBaseService impl }else{ count = (count + 0.5); } - - if((count+1) >= rowCount || i == c.length-1 || '\n' == c[i]) { + // 如果字换行早了 , 把count - 1 , 如果字换行晚了 , 就count - 0.x + if((count) >= rowCount || i == c.length-1 || '\n' == c[i]) { count = 0; contentList.add(rowContent.toString().replace("\n", "")); rowContent.setLength(0);