[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strings in scheme
You can use string-append, or also:
(printf "I'd like ~
this to be ~
on separate lines~n")
Robby
Quoting Chris Uzdavinis:
>
> How can I "wrap" really long strings in source code? For example,
>
> (printf "I'd like "
> "this to be "
> " on separate lines~n")
>
> I've tried using back slashes (like C), but that fails too. Is there
> a trick, or do I just need to tolarate really long wrapping lines?
>
> The closest solution I've found so far is this:
>
> (printf "I'd like \
> this to be \
> on separate lines~n")
>
> But it has the side effect of backslashing the newline (and so it
> stays in the string) plus all the extra space at the beginning of
> subsequent lines.
>
> Is it possible to break up long lines without changing their meaning?
> Thanks in advance.
>
> --
> Chris