Is there a function in kotlin like trimIndent or trimMargin to replace all whitespaces and all line breaks from a string template with a single space? If not, how can one achieve this? With regex?
k
K Merle
11/17/2021, 7:52 AM
You could use
.replace
a
Ashu
11/17/2021, 7:55 AM
Yeah I could, but I was hoping there would be some trim method for this. Or reindent method.