From: TheSaminator Date: Sat, 9 Apr 2022 17:41:43 +0000 (-0400) Subject: Split newlines in user profile bios X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=a5b02de3297376e864a7ea444f42f1757bdb7665;p=starship-fights Split newlines in user profile bios --- diff --git a/src/jvmMain/kotlin/starshipfights/info/views_user.kt b/src/jvmMain/kotlin/starshipfights/info/views_user.kt index 4b395b5..ff396c7 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_user.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_user.kt @@ -103,7 +103,11 @@ suspend fun ApplicationCall.userPage(): HTML.() -> Unit { section { h1 { +user.profileName } - +user.profileBio + user.profileBio.split('\n').forEachIndexed { i, p -> + if (i > 0) + br + +p + } } section { h2 { +"Admirals" }