优化
This commit is contained in:
1 parent
b2bfd04d1e
commit
ef12c611be
1 file changed
+1
-1
@@ -476,7 +476,7 @@ object ChapterProvider {
|
|||||||
}
|
}
|
||||||
val residualWidth = visibleWidth - desiredWidth
|
val residualWidth = visibleWidth - desiredWidth
|
||||||
val spaceSize = words.filter { it == " " }.size
|
val spaceSize = words.filter { it == " " }.size
|
||||||
if (spaceSize > 0) {
|
if (spaceSize > 1) {
|
||||||
val d = residualWidth / spaceSize
|
val d = residualWidth / spaceSize
|
||||||
var x = startX
|
var x = startX
|
||||||
words.forEachIndexed { index, char ->
|
words.forEachIndexed { index, char ->
|
||||||
|
|||||||
Reference in new issue
Block a user