DdIJddlZddlZddlmZGddej Zy)N)contextmanagerc eZdZdejedejedededdf dZededejdfd Z d edefd Z y) TextWrapperreversed_chunkscur_linecur_lenwidthreturnNct||z d}|jr&|d}|d|}||d}|j|||d<y|s |j|jyy)N)maxbreak_long_wordsappendpop) selfrrrr space_leftlastcutress 1/usr/lib/python3/dist-packages/click/_textwrap.py_handle_long_wordzTextWrapper._handle_long_wordsr!,  "2&D{ #Cz{#C OOC "%OB  OOO//1 2indentc#K|j}|j}|xj|z c_|xj|z c_ d||_||_y#||_||_wxYww)N)initial_indentsubsequent_indent)rrold_initial_indentold_subsequent_indents r extra_indentzTextWrapper.extra_indentsk!00 $ 6 6 v% &( ; "4D %:D "#5D %:D "sAA,A A,A))A,textcg}t|jD]7\}}|j}|dkDr |j}|j ||9dj |S)Nr ) enumerate splitlinesrrrjoin)rr!rvidxliners r indent_onlyzTextWrapper.indent_only&sh "4??#45 )IC((FQw// II' (  )yy}r) __name__ __module__ __qualname__tListstrintrrIteratorr r*rrrrs33&&+3 3  3  3$ ;3 ;1::d+; ; ;   rr)textwraptypingr. contextlibrrr3rrr7s %+(&&+r