/usr/lib/python3.9/site-packages/html2text/__pycache__
Edit: /usr/lib/python3.9/site-packages/html2text/__pycache__/cli.cpython-39.pyc (6267B)
a
Yý¡] $ ã @ s6 d dl Z d dlZddlmZmZmZ ddœdd„ZdS )é Né )Ú HTML2TextÚ__version__Úconfig)Úreturnc
C sÔ d} G dd„ dƒ}t ¡ }|jddtjdd� |jdd d
tjdd� |jd
ddtjdd� |jddd
tjdd� |jddd
tjdd� |jdddtj dd� |jddd
tj
dd� |jddd
tjdd� |jd d!d
tjd"d� |jd#d$d
tj
d%d� |jd&d'd
tjd(d� |jd)d*d
tjd+d� |jd,d-d
d.d/d0d1� |jd2d3d
d4d/d5d1� |jd6d7d
d8d/d9d1� |jd:d;d
� |jd?d@dAttjdBd>� |jdCdDd
dEd/dFd1� |jdGd
dHd/dId1� |jdJd
dKtjdLd1� |jdMd
dNtjdOd1� |jdPd
dQtjdRd1� |jdSd
dTtjdUd1� |jdVddWtjdXd1� |jdYddZtjd[d1� |jd\d
d]tjd^d1� |jd_d
d`tjdad1� |jdbdctjddd� |jdedftjdgd� |jdhditjdjd� |jdkdldm tt t!ƒ¡dn� |jdodpdq� |jdrdpdsdt� | "¡ }|j#�r6|j#duk�r6t$|j#dvƒ�}| %¡ }W d ƒ n1 �s*0 Y nt&j'j( %¡ }z| )|j*|j+¡}W nb t,�y¸ } zH|j-dw |j. }|dx|j/ 7 }|dy|j. dz 7 }t0|ƒ |‚W Y d }~n
d }~0 0 t1| d{�} |j2�rÒdu| _3|j4�ræd|| _5d}| _6|j7| _7|j8| _9|j:| _:|j;| _;|j<| _<|j=| _=|j>| _>|j?| _?|j@| _@|jA| _A|jB| _B|jC| _C|jD| _D|jE| _E|jF| _F|jG| _G|jH| _H|jI| _I|jJ| _J|jK| _K|jL| _L|jM| _M|jN| _N|jO| _O|jP| _P|jQ| _Q|jR| _Rt&jS T| U|¡¡ d S )~NÚ c @ s, e Zd ZdZdZdZdZdZdZdZ dZ
d S )
zmain..bcolorsz[95mz[94mz[92mz[93mz[91mz[0mz[1mz[4mN)Ú__name__Ú
__module__Ú__qualname__ZHEADERZOKBLUEÚOKGREENÚWARNINGZFAILÚENDCZBOLDZ UNDERLINE© r r ú1/usr/lib/python3.9/site-packages/html2text/cli.pyÚbcolors
s r z--default-image-altÚdefault_image_altz3The default alt string for images with missing ones)ÚdestÚdefaultÚhelpz--pad-tablesÚ
pad_tablesÚ
store_truez-pad the cells to equal column width in tables)r Úactionr r z--no-wrap-linksÚ
wrap_linksÚstore_falsez"don't wrap links during conversionz--wrap-list-itemsÚwrap_list_itemsz!wrap list items during conversionz--ignore-emphasisÚignore_emphasisz)don't include any formatting for emphasisz--reference-linksÚinline_linksz1use reference style links instead of inline linksz--ignore-linksÚignore_linksz&don't include any formatting for linksz--protect-linksÚ
protect_linkszCprotect links from line breaks surrounding them with angle bracketsz--ignore-imagesÚ
ignore_imagesz'don't include any formatting for imagesz--images-as-htmlÚimages_as_htmlzWAlways write image tags as raw html; preserves `height`, `width` and `alt` if possible.z--images-to-altÚ
images_to_altz&Discard image data, only keep alt textz--images-with-sizeÚimages_with_sizezMWrite image tags with height and width attrs as raw html to retain dimensionsz-gz--google-docÚ
google_docFz(convert an html-exported Google Document)r r r r z-dz--dash-unordered-listÚ
ul_style_dashz6use a dash rather than a star for unordered list itemsz-ez--asterisk-emphasisÚem_style_asteriskz=use an asterisk rather than an underscore for emphasized textz-bz--body-widthÚ
body_widthz3number of characters per output line, 0 for no wrap)r Útyper r z-iz--google-list-indentÚlist_indentz,number of pixels Google indents nested listsz-sz--hide-strikethroughÚhide_strikethroughzDhide strike-through text. only relevant when -g is specified as wellz--escape-allÚescape_snobzbEscape all special characters. Output is less readable, but avoids corner case formatting issues.z--bypass-tablesÚ
bypass_tablesz2Format tables in HTML rather than Markdown syntax.z--ignore-tablesÚ
ignore_tableszAIgnore table-related tags (table, th, td, tr) while keeping rows.z--single-line-breakÚsingle_line_breakzhUse a single line break after a block element rather than two line breaks. NOTE: Requires --body-width=0z--unicode-snobÚunicode_snobzUse unicode throughout documentz--no-automatic-linksÚuse_automatic_linksz.Do not use automatic links wherever applicablez--no-skip-internal-linksÚskip_internal_linkszDo not skip internal linksz--links-after-paraÚlinks_each_paragraphz2Put links after each paragraph instead of documentz--mark-codeÚ mark_codez.Mark program code blocks with [code]...[/code]z--decode-errorsÚ
decode_errorszZWhat to do in case of decode errors.'ignore', 'strict' and 'replace' are acceptable valuesz--open-quoteÚ
open_quotez!The character used to open quotesz
--close-quoteÚclose_quotez"The character used to close quotesz --versionÚversionÚ.)r r6 Úfilenameú?)ÚnargsÚencodingzutf-8)r: r ú-ÚrbzWarning:z Use the z--decode-errors=ignorez flag.)ÚbaseurlÚ*Ú__)VÚargparseÚArgumentParserÚadd_argumentr ZDEFAULT_IMAGE_ALTZ
PAD_TABLESZ
WRAP_LINKSZWRAP_LIST_ITEMSZIGNORE_EMPHASISZINLINE_LINKSZIGNORE_ANCHORSZ
PROTECT_LINKSZ
IGNORE_IMAGESZIMAGES_AS_HTMLZ
IMAGES_TO_ALTZIMAGES_WITH_SIZEÚintZ
BODY_WIDTHZGOOGLE_LIST_INDENTZ
BYPASS_TABLESZ
IGNORE_TABLESZSINGLE_LINE_BREAKZUNICODE_SNOBZUSE_AUTOMATIC_LINKSZSKIP_INTERNAL_LINKSZLINKS_EACH_PARAGRAPHZ MARK_CODEZ
DECODE_ERRORSZ
OPEN_QUOTEZCLOSE_QUOTEÚjoinÚmapÚstrr Ú
parse_argsr8 ÚopenÚreadÚsysÚstdinÚbufferÚdecoder; r3 ÚUnicodeDecodeErrorr r
r Úprintr r$ Zul_item_markr% Z
emphasis_markZstrong_markr&