On Mon, Nov 23, 2009 at 10:45 AM, Susan Day <span dir="ltr"><<a href="mailto:suzieprogrammer@gmail.com">suzieprogrammer@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi;<br>I have the following line of code I'm sending to postfix:<br><br> msg = 'A Message From %s:\n\n %s' % (string.replace(customer, '_', ' '), msg)<br><br>Unfortunately, it ignores the line breaks. I also tried %0A but that was ignored also. Please advise.<br>
</blockquote><div><br></div><div>Does it ignore ALL line breaks-- or just doubled ones like \n\n? E.g., blank lines?</div><div><br></div><div>I *think* its probably the latter, and doing msg.replace('\n\n', '\n \n') will make it work. That'd end up with a single space on those blank lines.</div>
<div><br></div><div>HTH,</div><div><br></div><div>--S</div></div>