Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
U
i_= @ s d Z ddlZddlmZ ddlmZ ddlmZ G dd dZe dd Z
d
d Zdd
Zdd Z
dd Zdd ZedZdd ZG dd dZG dd dZG dd dZedkrddlmZ edd d!d" dS )#zFormat all or a selected region (line slice) of text.
Region formatting options: paragraph, comment block, indent, deindent,
comment, uncomment, tabify, and untabify.
File renamed from paragraph.py with functions added from editor.py.
N)askyesno)
askinteger)idleConfc @ s6 e Zd ZdZdd Zedd Zdd Zdd d
ZdS )FormatParagrapha Format a paragraph, comment block, or selection to a max width.
Does basic, standard text formatting, and also understands Python
comment blocks. Thus, for editing Python source code, this
extension is really only suitable for reformatting these comment
blocks or triple-quoted strings.
Known problems with comment reformatting:
* If there is a selection marked, and the first line of the
selection is not complete, the block will probably not be detected
as comments, and will have the normal "text formatting" rules
applied.
* If a comment block has leading whitespace that mixes tabs and
spaces, they will not be considered part of the same block.
* Fancy comments, like this bulleted list, aren't handled :-)
c C s
|| _ d S Neditwinselfr r -/opt/python38/lib/python3.8/idlelib/format.py__init__ s zFormatParagraph.__init__c C s t jdddddd| _d S )N
extensionsr z max-widthintH )typedefault)r Z GetOption max_width)clsr r r reload" s
zFormatParagraph.reloadc C s
d | _ d S r r r
r r r close' s zFormatParagraph.closeNc C s |dkr| j n|}| jj}| j \}}|rF|rF|||}t|}nt||d\}}}}|rpt|||}n
t ||}|
ddd ||kr|d| | |
|| ||| | n|d| |d dS )a Formats paragraph to a max width specified in idleConf.
If text is selected, format_paragraph_event will start breaking lines
at the max width, starting from the beginning selection.
If no text is selected, format_paragraph_event uses the current
cursor location to determine the paragraph (lines of text surrounded
by blank lines) and formats it.
The length limit parameter is for testing with a known value.
Ninsertsel1.0endbreak)r r textget_selection_indicesgetget_comment_headerfind_paragraphindexreformat_commentreformat_paragraph
tag_removemark_setundo_block_startdeleter undo_block_stopZsee) r
eventlimitr firstlastdatacomment_headernewdatar r r format_paragraph_event* s*
z&FormatParagraph.format_paragraph_event)N) __name__
__module____qualname____doc__r
classmethodr r r1 r r r r r s
r c
C s: t t|d\}}| d| d| }| d| ddr`t|r`|d }| d| d| }q(|}t|}t|}t||krt||d s|d }| d| d| }qtd| }|d }| d| d| }|dkrt||krt||d s|d }| d| d| }qd|d } | ||| | |fS ) zReturns the start/stop indices enclosing the paragraph that mark is in.
Also returns the comment format string, if any, and paragraph of text
between the start/stop indices.
.z%d.0z%d.end