tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Z\¬Qc@s`ddlZddlmZdd
d„ƒYZd„Zd„Zd„Zd„Zd    „ZdS( iÿÿÿÿN(tidleConftFormatParagraphcBs5eZddgfgZd„Zd„Zd„ZRS(tformatsFormat Paragraphs<<format-paragraph>>cCs ||_dS(N(teditwin(tselfR((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyt__init__scCs d|_dS(N(tNoneR(R((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pytclosesc Csçttjdddddƒƒ}|jj}|jjƒ\}}|ri|ri|j||ƒ}d}n$t||jdƒƒ\}}}}|rQ|j    dƒ}t
t |ƒd    „|ƒ}dj |ƒ}t |t |ƒd
ƒ}    t||    ƒ}
|
j    dƒ}
d} |
d s&d} |
d  }
n|d „} dj t
| |
ƒƒ| }
nt||ƒ}
|jd ddƒ|
|krÆ|jd|ƒ|jƒ|j||ƒ|j||
ƒ|jƒn|jd|ƒ|jdƒdS(NtmainRt    paragraphttypetintttinserts
cSs||S(N((tsttl((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyt<lambda>0siiÿÿÿÿcSs||S(N((titemtprefix((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyR@stsels1.0tendtbreak(R Rt    GetOptionRttexttget_selection_indicestgettfind_paragraphtindextsplittmaptlentjointmaxtreformat_paragrapht
tag_removetmark_settundo_block_starttdeleteR tundo_block_stoptsee( RteventtmaxformatwidthRtfirsttlasttdatatcomment_headertlinest format_widthtnewdatat block_suffixtbuilder((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pytformat_paragraph_event"s@      $
 
  (sFormat Paragraphs<<format-paragraph>>(t__name__t
__module__tmenudefsRRR3(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyRs
        c
 
Cs¦tt|jdƒƒ\}}|jd|d|ƒ}xM|jd|ddƒr‡t|ƒr‡|d}|jd|d|ƒ}q;W|}t|ƒ}t|ƒ}xKt|ƒ|krót||ƒ ró|d}|jd|d|ƒ}q©Wd|}|d}|jd|d|ƒ}xW|dkr{t|ƒ|kr{t||ƒ r{|d}|jd|d|ƒ}q%Wd|d}    |    |||j|    |ƒfS(Nt.s%d.0s %d.0 lineendt<Rii(RR RRtcomparet is_all_whitetget_comment_headerR(
Rtmarktlinenotcoltlinet first_linenoR-tcomment_header_lenR+R*((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyRQs,(
 
 
 
 
c    Cs÷|jdƒ}d}t|ƒ}x*||krMt||ƒrM|d}q$W||kr^|St||ƒ}|d|krªt||dƒ rªt||dƒ}n|}|| }|}x||krÅt||ƒ rÅtjd||ƒ}    x¿tdt|    ƒdƒD]¥}
|    |
} | s+qnt|| jƒƒ|kro||kro|j|jƒƒ|}n|| d}|
dt|    ƒkr|    |
ddkr|d}qqW|d}qÃW|j|jƒƒ|j    ||ƒdj
|ƒS(Ns
iis(\s+)it ( RRR:t
get_indenttretranget
expandtabstappendtrstriptextendR( R,tlimitR.titntindent1tindent2tnewtpartialtwordstjtword((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyR!js<  %
 
     *cCstjd|ƒdk    S(Ns^\s*$(RDtmatchR(R?((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyR:scCstjd|ƒjƒS(Ns^(\s*)(RDRTtgroup(R?((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyRCscCs/tjd|ƒ}|dkr"dS|jdƒS(Ns^(\s*#*)R i(RDRTRRU(R?tm((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyR;“s ((    RDtidlelib.configHandlerRRRR!R:RCR;(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/FormatParagraph.pyt<module>s =        #