15m16 成书中间孤短页合并放宽(上限175/阈值55, 治残句刚好50字合不了致留空)
Auto Release / build (push) Successful in 5m11s

This commit is contained in:
youpaishidifu
2026-11-23 15:03:24 +08:00
parent 749a752a8c
commit 74728865f7
2 changed files with 6 additions and 3 deletions
@@ -491,7 +491,8 @@ public class CustomScreenManager implements Listener {
for (int pi = 1; pi + 1 < pages.size(); pi++) {
String cur = pages.get(pi);
String nxt = pages.get(pi + 1);
if (cur.length() < 50 && (cur.length() + nxt.length() + 1) <= 165) {
// 15m16 放宽中间孤短页合并: 上限165→175, 阈值50→55(治"残句刚好50字合不了")
if (cur.length() < 55 && (cur.length() + nxt.length() + 1) <= 175) {
pages.set(pi + 1, cur + "\n" + nxt);
pages.remove(pi);
}