<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>p.s. You can also try </div><div><br></div><div><div><br></div><div>(require 2htdp/batch-io)</div><div><br></div><div>(check-expect (write-file 'standard-out "hello world\ngood bye\n") 'standard-out)</div></div><div><br></div><div><br></div><div><br></div><br><div><div>On Feb 17, 2013, at 5:47 PM, Matthias Felleisen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>You would have to switch to ASL and use display. -- Matthias</div><div><br></div><div><br></div><br><div><div>On Feb 17, 2013, at 5:43 PM, Mitchell Wand wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Is there a good way to create multi-line strings in ISL? For example, instead of producing output in the form<div><br></div><div><div><font face="courier new, monospace">(list</font></div><div><font face="courier new, monospace"> "(* 11 "</font></div>
<div><font face="courier new, monospace"> " 22 "</font></div><div><font face="courier new, monospace"> " 33 "</font></div>
<div><font face="courier new, monospace"> " 44 "</font></div><div><font face="courier new, monospace"> " 55) ")</font></div>
</div><div><font face="courier new, monospace"><br></font></div><div style=""><font face="arial, helvetica, sans-serif">[where here I've padded the strings out to 80 characters to force the Racket printer to produce each string on a separate line.]</font></div>
<div><br></div><div style="">I'd like to have a program that produced the output</div><div style=""><br></div><div style=""><span style="font-family:'courier new',monospace">(* 11</span><br></div><div style=""><font face="courier new, monospace"> 22</font></div>
<div style=""><font face="courier new, monospace"> 33</font></div><div style=""><font face="courier new, monospace"> 44</font></div><div style=""><font face="courier new, monospace"> 55)</font></div><div style=""><font face="courier new, monospace"><br>
</font></div><div style=""><font face="arial, helvetica, sans-serif">preferably without quotations. When I put things like #\n #\newline or #\r in the middle of a string, ISL prints them out like #\n, #\newline, or #\r.</font></div>
<div style=""><font face="arial, helvetica, sans-serif"><br></font></div><div style=""><font face="arial, helvetica, sans-serif">Any ideas? What have I overlooked?</font></div><div style=""><font face="arial, helvetica, sans-serif"><br>
</font></div><div style=""><font face="arial, helvetica, sans-serif">--Mitch</font></div><div style=""><font face="arial, helvetica, sans-serif"><br></font></div><div style=""><br></div></div>
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></div>____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></body></html>