Skip to content

Commit 5c1ac03

Browse files
committed
fix test
(cherry picked from commit dc0f7c6)
1 parent 70375ef commit 5c1ac03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/main/kotlin/alfio/pi/manager/LabelManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ internal fun optimizeText(content: String, maxLengthForSize: Array<Pair<Int, Flo
186186
.map { it!!.second to it.third }
187187
.orElseGet {
188188
val conf = maxLengthForSize[maxLengthForSize.size - 1]
189-
text.substring(0 until conf.first) to conf.second
189+
text.substring(0 until conf.first).trim() to conf.second
190190
}
191191
}
192192

0 commit comments

Comments
 (0)