-í
¡ì <c       sL    d  Z    h  d d <d d <d d <d d <d	 d
 <d d <d d <d d <Z 0 y 1 e d i d ƒ d Z Wn 2 3 d Z n X8 d k Z 9 d k Z : y ; d k l Z Wn < = d k l Z n X> d k Z C d k	 l	 Z	 I d d d „ Z
 S d e	 f d „  ƒ  YZ ‘ e d j o ’ e i ƒ  n d S(   sK   Function to indent the lines of a string using a standard indent spacing.

s   $RCSfile: indentstring.py,v $s   module_namesA   $Id: indentstring.py,v 1.2 2001/11/25 13:05:37 doughellmann Exp $s   rcs_ids    Doug Hellmann <doug@hellfly.net>s   creators   HappyDocs   projects   Sun, 27-Aug-2000 07:49:28 EDTs   createds   $Author: doughellmann $s   authors   $Revision: 1.2 $s   versions   $Date: 2001/11/25 13:05:37 $s   dates    i   s   0.0N(   s   StringIO(   s   StreamFlushTestc    sd   I J t  ƒ  } K t i |  d ƒ } L t | | d „ M | ƒ } N | i
 | ƒ O | i ƒ  Sd  S(   Ns   
c    s   L d | |  f S(   Ns   %s%s
(   s   pres   x(   s   xs   pre(    (    sV   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/indentstring.pys   <lambda>L s    (   s   StringIOs   outputs   strings   splits   strs   liness   maps   tabWidths   tabChars   indent_liness
   writeliness   getvalue(   s   strs   tabWidths   tabChars   outputs   liness   indent_lines(    (    sV   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/indentstring.pys   indentStringI s   s   IndentStringTestc      s   S U d „  Z  RS(   Nc  	  sf  U V t  ƒ  } W t i d d d d d | ƒ } Y d d d d	 f f d d d d	 f f f d d d d	 f f d d d d	 f f f d d d d	 f f d d d d	 f f f d d d d	 f f d d d d	 f f f d d d d	 f f d d d d	 f f f f } _ | i | ƒ ` t | i ƒ  d
 d d d ƒ} b d } Œ t
 o | | j p t d | ‚ Ž d  Sd  S(   Ns   indenti   s   widthi
   s   streami   s   twoi   s   fours   tabWidths   tabChars   .sV  ..( ( ( 1,
..      'two',
..      ( 3,
..        'four')),
..    ( 1,
..      'two',
..      ( 3,
..        'four'))),
..  ( ( 1,
..      'two',
..      ( 3,
..        'four')),
..    ( 1,
..      'two',
..      ( 3,
..        'four'))),
..  ( ( 1,
..      'two',
..      ( 3,
..        'four')),
..    ( 1,
..      'two',
..      ( 3,
..        'four'))),
..  ( ( 1,
..      'two',
..      ( 3,
..        'four')),
..    ( 1,
..      'two',
..      ( 3,
..        'four'))),
..  ( ( 1,
..      'two',
..      ( 3,
..        'four')),
..    ( 1,
..      'two',
..      ( 3,
..        'four'))))
..
s#   Did not get expected indention "%s"(   s   StringIOs   streams   pprints   PrettyPrinters   printers
   test_tuples   indentStrings   getvalues   indenteds   expected_values	   __debug__s   AssertionError(   s   selfs   printers   indenteds   streams   expected_values
   test_tuple(    (    sV   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/indentstring.pys   testIndentStringU s   !Ì!	*%(   s   testIndentString(    (    (    sV   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/indentstring.pys   IndentStringTestS s   s   __main__(   s   __doc__s   __rcs_info__s   splits   __version__s   pprints   strings	   cStringIOs   StringIOs   unittests   StreamFlushTests   indentStrings   IndentStringTests   __name__s   main(	   s   indentStrings   __version__s   StreamFlushTests   strings   StringIOs   unittests   pprints   IndentStringTests   __rcs_info__(    (    sV   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/indentstring.pys   ? s"   Q
>