use soft text cleanup for study annotations - closes #9919

pull/9923/head
Thibault Duplessis 2021-10-03 10:10:21 +02:00
parent ab46589a52
commit fdddc5e89b
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ object Node {
def sanitize(text: String) =
Text {
lila.common.String
.fullCleanUp(text)
.softCleanUp(text)
.take(4000)
.replaceAll("""\r\n""", "\n") // these 3 lines dedup white spaces and new lines
.replaceAll("""(?m)(^ *| +(?= |$))""", "")