This commit is contained in:
kunfei 2023-01-28 11:43:51 +08:00
parent 7e2281fee5
commit 2ab4fe6c03

View File

@ -476,7 +476,7 @@ object ChapterProvider {
}
val residualWidth = visibleWidth - desiredWidth
val spaceSize = words.filter { it == " " }.size
if (spaceSize > 0) {
if (spaceSize > 1) {
val d = residualWidth / spaceSize
var x = startX
words.forEachIndexed { index, char ->