[code.view]

[top] / python / PyMOTW / textwrap / textwrap_hanging_indent.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import textwrap
     from textwrap_example import sample_text
     
     dedented_text = textwrap.dedent(sample_text).strip()
     print textwrap.fill(dedented_text, initial_indent='', subsequent_indent='    ')
     

[top] / python / PyMOTW / textwrap / textwrap_hanging_indent.py

contact | logmethods.com