-í
°¦T<c       st      d  k  Z   d  k Z  d f  d „  ƒ  YZ V d „  Z o d d „ Z ’ d „  Z • d „  Z ˜ d „  Z d  S(	   Ns   FormatParagraphc      sn     d d d f g f g Z   h  d g d <Z   h  d g d <Z $ d „  Z ' d „  Z * d „  Z RS(	   Ns   edits   Format Paragraphs   <<format-paragraph>>s   <Alt-q>s   <Meta-q>c    s   $ % | |  _  d  S(   N(   s   editwins   self(   s   selfs   editwin(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   __init__$ s   c    s   ' ( t  |  _ d  S(   N(   s   Nones   selfs   editwin(   s   self(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   close' s   c    s3  * + |  i i } , |  i i ƒ  \ } } - | o | o" . | i | | ƒ }
 / d }	 n( 1 t	 | | i
 d ƒ ƒ \ } } }	 }
 3 |	 oò 5 t i |
 d ƒ } 6 t t |	 ƒ d „ | ƒ } 7 t i | d ƒ }
 9 t d t |	 ƒ d ƒ } : t |
 | ƒ } < t i | d ƒ } B d } C | d o D d } E | d  } n F |	 d „ } G t i t | | ƒ d ƒ | } n J t |
 ƒ } K | i d	 d
 d ƒ L | |
 j oW M | i d | ƒ N | i ƒ  O | i | | ƒ P | i | | ƒ Q | i ƒ  n S | i d | ƒ T | i d ƒ d  S(   Ns    s   inserts   
c    s   6 |  | S(   N(   s   sts   l(   s   sts   l(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   <lambda>6 s    iF   i   iÿÿÿÿc    s   F | |  S(   N(   s   prefixs   item(   s   items   prefix(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   <lambda>F s    s   sels   1.0s   end(   s   selfs   editwins   texts   get_selection_indicess   firsts   lasts   gets   datas   comment_headers   find_paragraphs   indexs   strings   splits   liness   maps   lens   joins   maxs   format_widths   reformat_paragraphs   newdatas   block_suffixs   builders
   tag_removes   mark_sets   undo_block_starts   deletes   inserts   undo_block_stops   see(   s   selfs   events   lasts   builders   texts   block_suffixs   liness   newdatas   format_widths   comment_headers   datas   first(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   format_paragraph_event* s:   '
		&(   s   menudefss   keydefss   unix_keydefss   __init__s   closes   format_paragraph_event(    (    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   FormatParagraph s   c 
   sü  V W t  t t i | d ƒ ƒ \ } } X |  i d | d | ƒ } Y xY Y |  i
 d | d d ƒ o
 t | ƒ o. Z | d } [ |  i d | d | ƒ } qJ W\ | } ] t | ƒ } ^ t | ƒ }	 _ xW _ t | ƒ | j o t | |	 ƒ o. a | d } b |  i d | d | ƒ } qÐ Wc d | } e | d } f |  i d | d | ƒ } g xd g | d j o" t | ƒ | j o t | |	 ƒ o. j | d } k |  i d | d | ƒ } qdWl d | d } m | | | |  i | | ƒ f Sd  S(   Ns   .s   %d.0s   %d.0 lineends   <s   endi   i    (   s   maps   ints   strings   splits   marks   linenos   cols   texts   gets   lines   compares   is_all_whites   first_linenos   get_comment_headers   comment_headers   lens   comment_header_lens   lasts   first(
   s   texts   marks   lasts   first_linenos   firsts   cols   linenos   comment_headers   lines   comment_header_len(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   find_paragraphV s,   $ *"	 (" 5"iF   c    s„  o p t  i |  d ƒ } q d } r t | ƒ } s x3 s | | j  o t | | ƒ o t | d } q6 Wu | | j o v |  Sn w t | | ƒ } x | d | j  o t | | d ƒ o y t | | d ƒ }	 n
 { | }	 | | |  } } | } ~ x?~ | | j  o t | | ƒ o€ t i d | | ƒ }
  xì t d t |
 ƒ d ƒ D ]Ï } ‚ |
 | } ƒ | o
 „ qXn … t t  i | | ƒ ƒ | j o
 | | j o& ‡ | i t  i | ƒ ƒ ˆ |	 } n ‰ | | d } Š | d t |
 ƒ j  o |
 | d d j o ‹ | d } n qXWŒ | d } qW | i t  i | ƒ ƒ  | i | | ƒ  t  i | d ƒ Sd  S(   Ns   
i    i   s   (\s+)i   s    (   s   strings   splits   datas   liness   is   lens   ns   is_all_whites
   get_indents   indent1s   indent2s   news   partials   res   wordss   ranges   js   words
   expandtabss   limits   appends   rstrips   extends   join(   s   datas   limits   partials   is   words   js   liness   ns   indent1s   indent2s   wordss   new(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   reformat_paragrapho s@   	 !*		 " 	
0/c    s    ’ “ t  i d |  ƒ t j	 Sd  S(   Ns   ^\s*$(   s   res   matchs   lines   None(   s   line(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   is_all_white’ s   c    s    • – t  i d |  ƒ i ƒ  Sd  S(   Ns   ^(\s*)(   s   res   matchs   lines   group(   s   line(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys
   get_indent• s   c    sG   ˜ ™ t  i d |  ƒ } š | t j o š d Sn › | i d ƒ Sd  S(   Ns   ^(\s*#*)s    i   (   s   res   matchs   lines   ms   Nones   group(   s   lines   m(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   get_comment_header˜ s    (   s   strings   res   FormatParagraphs   find_paragraphs   reformat_paragraphs   is_all_whites
   get_indents   get_comment_header(   s   find_paragraphs   res   strings
   get_indents   FormatParagraphs   get_comment_headers   is_all_whites   reformat_paragraph(    (    s,   /mit/python/share/idlelib/FormatParagraph.pys   ? s   B#