Claudio Grondi wrote:
<<<clever stuff to di indentation>>>
> When necessary to skip first line _and_ indentation:
>   message = """
>   This is line 1
>   This is line 2
>   This is line 3
>   """.replace('\n  ', '\n')[1:] # adjust here '\n  ' to indentation

Riffing on this idea:
         message = """
           This is line 1
           This is line 2
           This is line 3
           """.replace("""
           """, '\n')[1:]

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to