Dave Hansen wrote: >>>> print textwrap.dedent(s).strip().replace('\n',' ') > this is a multiline triple-quted string with indentation for nicer > code formatting
But I have some newlines that are already embedded in the string, and I wouldn't want those replaced. -- http://mail.python.org/mailman/listinfo/python-list