multi-quoted strings for HERE documents
David Goodger
goodger at python.org
Mon Nov 18 20:36:03 EST 2002
Michael P. Soulier wrote:
> Does anyone have a better way of doing this?
Just move the backslash up a bit:
print """\
<table>
<tr>
<td>cell contents</td>
</r>
</table>"""
--
David Goodger <goodger at python.org> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
More information about the Python-list
mailing list