Is there a way to continue a single string on multiple lines without inserting
\n into the string?
"a#some character here
The only methods I currently know of is
I was wondering if there was an even more succinct shortcut.
Edit: uh… that’s not what you were asking for. I don’t think you can do that with a single string literal, no.
What I meant was, can I type the string on multiple lines (for code formatting purposes) without there being any
\n in the string?
is more succinct. Otherwise see my edit above
Wow I feel really stupid for not having realized that, thanks.
In retrospect, what I was looking for was not necessarily something more “succinct”, but something for which I wouldn’t have to stick
string into the first line forcing me to reformat everything, your solution satisfies that, thanks.
:(replace($(esc(s)), r"\n+" => " "))
"a b c "