<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2019, at 7:55 PM, John Rose <<a href="mailto:john.r.rose@oracle.com" class="">john.r.rose@oracle.com</a>> wrote:</div><div class=""><div class="">. . .<br class="">Also, is a left-margin quote allowed immediately before the<br class="">close-quote? Is it required? If allowed and not required,<br class="">this basically means such a string can end with either three<br class="">or four close-quotes.<br class=""></div></div></blockquote><br class=""></div><div>I would say “not allowedâ€.</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 18, 2019, at 8:29 PM, John Rose <<a href="mailto:john.r.rose@oracle.com" class="">john.r.rose@oracle.com</a>> wrote:</div><div class="">. . .<br class="">This puts the burden back on the uncommon stripping<br class="">case. We might want a way to say "delete that last newline,<br class="">even though I used it to make my pretty box". One way<br class="">to do this would be a new escape sequence for ML strings<br class="">only:<br class=""><br class="">String message = """<br class=""> hello<br class=""> world\<br class=""> "â€";<br class=""></div></blockquote><br class=""></div><div class="">Consider an escape sequence (I’ll use \@ as the example) that has the property that it contributes nothing to the content of the string, and furthermore cancels all non-escapewhitespace (including newlines) on both sides.</div><div class=""><br class=""></div><div class="">To strip the last newline:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">String message = """<br class=""> hello<br class=""> world<br class=""> \@""";</font></div><div class=""><br class=""></div><div class=""><div class="">To omit all newlines and just run lines together with one space in between:</div></div><div class=""><br class=""></div><div class=""><font face="Courier" class="">String message = """</font><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@\ hello</span><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@\ world</span><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@""";</span></div><div class=""><br class=""></div><div class=""><div class="">To omit all newlines and just run lines together with one space in between and one newline at the end:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">String message = """</font><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@\ hello</span><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@\ world</span><br style="font-family: Courier;" class=""><span style="font-family: Courier;" class=""> \@\n""";</span></div></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>