Commit 638a0ef 1 parent 72e7470 commit 638a0ef Copy full SHA for 638a0ef
File tree 2 files changed +8
-2
lines changed
src/main/kotlin/com/diyigemt/arona/communication/message
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ kotlin {
12
12
freeCompilerArgs.add(" -Xcontext-receivers" )
13
13
}
14
14
}
15
- version = " 1.3.6 "
15
+ version = " 1.3.7 "
16
16
application {
17
17
mainClass = " com.diyigemt.arona.ApplicationKt"
18
18
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ data class Markdown(
33
33
is InlineCommandElement -> it.build()
34
34
else -> it.build() + " \n "
35
35
}
36
+ }.let {
37
+ if (it.lastOrNull() == ' \n ' ) {
38
+ it.substring(0 , it.length - 1 )
39
+ } else {
40
+ it
41
+ }
36
42
}
37
43
}
38
44
}
@@ -166,7 +172,7 @@ data class ListElement(
166
172
override fun build (): String {
167
173
return content.mapIndexed { idx, it ->
168
174
" ${
169
- if (hasIndex) " $idx ." else " -"
175
+ if (hasIndex) " ${ idx + 1 } ." else " -"
170
176
} ${it.build()} "
171
177
}.joinToString(" \n " )
172
178
}
You can’t perform that action at this time.
0 commit comments