Hi all,

consider the following string:  "bar\"foo\"buzz"
I want to display it like: bar\"foo\"buzz

Using display or write doesn't give me the needed result:

(define strg "bar\"foo\"buzz")
(newline)
(display strg)
(newline)
(write strg)

returns:
bar"foo"buzz
"bar\"foo\"buzz"


I can make it work with:
(display (string-join (string-split strg #\" )  "\\\""))
->bar\"foo\"buzz

Is there any better way?

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to