I would like to get this single-line string value:
"pineapple"
But in the source code, I would like to write the string across multiple lines:
"pine
apple"
However, the multi-line code above will return a string that includes a newline. Is there a way to stop a newline from being returned?
In other Lisps such as Scheme and Emacs Lisp, the newline can be suppressed by adding a backslash \ at the end of the line:
;; In Scheme and Emacs Lisp, this returns "pineapple":
"pine\
apple"
In Common Lisp, however, placing a backslash at the end of the line has no effect:
;; Common Lisp:
(string-equal "pine\
apple"
"pine
apple")
;; Returns: T
How do I write a single line string literal across multiple lines in the source code?