multi-quoted strings for HERE documents
Chad Netzer
cnetzer at mail.arc.nasa.gov
Mon Nov 18 20:02:16 EST 2002
On Monday 18 November 2002 16:40, Michael P. Soulier wrote:
> Now, I can get close in Python with multi-line strings, like so...
>
> print """
> <table>
> <tr>
> <td>cell contents</td>
> </r>
> </table>"""
[snipped] (regarding unwanted initial newline)
> Does anyone have a better way of doing this?
print """\
<table>
<tr>
<td>cell contents</td>
</r>
</table>"""
--
Bay Area Python Interest Group - http://www.baypiggies.net/
Chad Netzer
cnetzer at mail.arc.nasa.gov
More information about the Python-list
mailing list