is `${'\n'}` the only way to add a new line in tri...
# announcements
e
is
${'\n'}
the only way to add a new line in triple quotes?
b
You can just press enter in triple quotes
"""line one This is now on new line Third line thanks to triple quotes"""
e
I need multiple new lines, I forgot to specify that
b
Either insert them raw as """one Five""" Or use ${List(count).joinToString("\n")}
p
keep in mind that the latter will be many orders of magnitude slower than just inserting literals
👆 2