hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
42
43
44
45
46
47
48
49
50
51
52
Ë
dñúhüãó€—dZddlmZddlmZddlmZmZddlmZm    Z    m
Z
ddl m Z m Z Gd„de«ZGd    „d
e«Zy ) z
RichText definition
é)Úcopy)Ú NUMERIC_TYPES)Ú
InlineFontÚText)ÚStrictÚStringÚTyped)ÚElementÚ
whitespacecóN—eZdZdZee¬«Ze«Zd„Z    d„Z
d„Z d„Z d„Z y)    Ú    TextBlockzv Represents text string in a specific format
 
    This class is used as part of constructing a rich text strings.
    )Ú expected_typecó —||_||_y©N)ÚfontÚtext)Úselfrrs   úJH:\Change_password\venv_build\Lib\site-packages\openpyxl/cell/rich_text.pyÚ__init__zTextBlock.__init__s€ØˆŒ    Øˆ    ócój—|j|jk(xr|j|jk(Sr)rr)rÚothers  rÚ__eq__zTextBlock.__eq__s'€Øy‰y˜EŸJ™JÑ&ÒB¨4¯9©9¸¿
¹
Ñ+BÐBrcó—|jS)zJust retun the text)r©rs rÚ__str__zTextBlock.__str__"s €ày‰yÐrcó¤—|jt«k7xr |jxsd}|jj›d|j›d|›S)NÚdefaultz text=z, font=)rrÚ    __class__Ú__name__r)rrs  rÚ__repr__zTextBlock.__repr__'sF€Øy‰yœJ›LÑ(Ò6¨T¯Y©YÒC¸)ˆØ—.‘.×)Ñ)Ð*¨&°·±° ¸7À4À&ÐIÐIrcóâ—td«}|j|jjd¬««td«}|j|_t |«|j|«|S)NÚrÚrPr)ÚtagnameÚt)r
ÚappendrÚto_treerr )rÚelr&s   rr(zTextBlock.to_tree,sT€Ü S‹\ˆØ
    ‰    $—)‘)×#Ñ#¨EÐ#Ó2Ô3Ü C‹LˆØ—‘ˆŒÜ1Œ Ø
    ‰    !Œ ؈    rN)r Ú
__module__Ú __qualname__Ú__doc__r    rrrrrrrr!r(©rrr r s5„ññ ˜zÔ *€DÙ ‹8€Dòò
Còò
Jó
rr c󢇗eZdZdZˆfd„Zed„«Zed„«Zed„«Zˆfd„Z    ˆfd„Z
d„Z ˆfd    „Z ˆfd
„Z ˆfd „Zd „Zd „Zd„Zd„ZˆxZS)Ú CellRichTextaRepresents a rich text string.
 
    Initialize with a list made of pure strings or :class:`TextBlock` elements
    Can index object to access or modify individual rich text elements
    it also supports the + and += operators between rich text strings
    There are no user methods for this class
 
    operations which modify the string will generally call an optimization pass afterwards,
    that merges text blocks with identical formats, consecutive pure text strings,
    and remove empty strings and empty text blocks
    cóþ•—t|«dk(rJ|d}t|ttf«rtj |«n.tj |«|g}ntj |«t‰|!|«y)Nér)    ÚlenÚ
isinstanceÚlistÚtupler/Ú_check_rich_textÚ_check_elementÚsuperr)rÚargsrs  €rrzCellRichText.__init__Iscø€Ü ˆt‹9˜Š>ؘ‘7ˆDܘ$¤¤u  Ô.Ü×-Ñ-¨dÕ3ä×+Ñ+¨DÔ1ؐv‘ä × )Ñ )¨$Ô /Ü ‰Ñ˜ÕrcóV—t|tttf«st    d|›«‚y)NzIllegal CellRichText element )r3Ústrr rÚ    TypeError)ÚclsÚvalues  rr7zCellRichText._check_elementVs,€ä˜%¤#¤y´-Ð!@ÔAÜÐ;¸E¸7ÐCÓDÐ DðBrcó<—|D]}tj|«Œyr)r/r7)r=Ú    rich_textr&s   rr6zCellRichText._check_rich_text\s€àò    +ˆAÜ × 'Ñ '¨Õ *ñ    +rcóŽ—tj|«}|jr|jjdd«fSg}|jD]o}d}|jr|jjdd«}|j
r&|j t|j
|««Œ_|j |«Œq||«S)NÚx005F_Ú)rÚ    from_treer&Úreplacer#r$r'r )r=ÚnoderÚsr#r&s      rrDzCellRichText.from_treeas›€ä~‰~˜dÓ#ˆØ 6Š6Ø—F‘F—N‘N 8¨RÓ0Ð2Ð 2Ø ˆØ—‘ò    ˆA؈A؏sŠsØ—C‘C—K‘K ¨"Ó-ØuŠuØ—‘œ 1§5¡5¨!Ó,Õ-à—‘˜• ð    ñ1‹vˆ rcóΕ—d}tt««}|D]}t|t«r|sŒ|jsŒ#t |«t |«k(rOt|t«r||z }ŒP|j |j k(r |xj|jz c_Œ‰|r|j|«|}ŒŸ|r|j|«t‰|%td«|«|Sr) r/r5r3r;rÚtyperr'r8Ú __setitem__Úslice)rÚlast_tÚlr&rs    €rÚ_optzCellRichText._optssÅø€ØˆÜ œ›Ó !ˆØò    ˆAܘ!œSÔ!ÙØØ—V’VØÜF‹|œt A›wÒ&ܘa¤Ô%ؘa‘KFØØ—[‘[ A§F¡FÒ*Ø—K’K 1§6¡6Ñ)•KØÙØ—‘˜Ô Ø‰Fð    ñ  à H‰HVÔ Ü ‰ÑœE $›K¨Ô+؈ rcó¶•—tj|«t‰| t    |«Dcgc] }t |«‘Œc}«|j «Scc}wr)r/r6r8Ú__iadd__r4rrN)rÚargÚers   €rrPzCellRichText.__iadd__sBø€ä×%Ñ% cÔ*Ü ‰Ñ¬4°«9Ö5 aœ$˜q'Ò5Ô6؏y‰y‹{Ðùò6s­Acó–—tt|«t|«zDcgc] }t|«‘Œc}«j«Scc}wr)r/r4rrN)rrQrRs   rÚ__add__zCellRichText.__add__”s5€Ü¬d°4«j¼4À»9Ñ.DÖE¨œT !WÒEÓF×KÑKÓMÐMùÒEsŸAcóp•—tj|«t‰| ||«|j    «yr)r/r7r8rJrN)rÚindxÚvalrs   €rrJzCellRichText.__setitem__˜s)ø€Ü×#Ñ# CÔ(Ü ‰Ñ˜D #Ô&Ø     ‰     rcóN•—tj|«t‰| |«yr)r/r7r8r'©rrQrs  €rr'zCellRichText.appendžsø€Ü×#Ñ# CÔ(Ü ‰‰sÕrcóN•—tj|«t‰| |«yr)r/r6r8ÚextendrYs  €rr[zCellRichText.extend£sø€Ü×%Ñ% cÔ*Ü ‰‰sÕrcóP—djdjd„|D«««S)NzCellRichText([{}])z, c3ó2K—|]}t|«–—Œy­wr)Úrepr)Ú.0rGs  rú    <genexpr>z(CellRichText.__repr__.<locals>.<genexpr>©sèø€Ò5LÀ!´d¸1·gÑ5Lùs‚)ÚformatÚjoinrs rr!zCellRichText.__repr__¨s"€Ø#×*Ñ*¨4¯9©9Ñ5LÀtÔ5LÓ+MÓNÐNrcó\—dj|Dcgc] }t|«‘Œc}«Scc}w)NrC)rbr;©rrGs  rrzCellRichText.__str__¬s#€Øw‰w¨Ö- 1œ˜AÒ-Ó.Ð.ùÒ-s)có>—|Dcgc] }t|«‘Œc}Scc}w)zv
        Returns a list of the strings contained.
        The main reason for this is to make editing easier.
        )r;rds  rÚas_listzCellRichText.as_list°s€ð
!%Ö%˜1”A•Ò%Ð%ùÒ%s…có—td«}|D]|}t|t«r |j|j    ««Œ3td«}td«}||_t |«|j|«|j|«Œ~|S)z4
        Return the full XML representation
        Úisr#r&)r
r3r r'r(rr )rÚ    containerÚobjr)r&s     rr(zCellRichText.to_tree¸s}€ô˜D“Mˆ    Øò
    %ˆCܘ#œyÔ)Ø× Ñ  §¡£Õ/ô˜S“\Ü˜C“LØ”ܘ1” Ø—    ‘    ˜!” Ø× Ñ  Õ$ð
    %ðÐr)r r*r+r,rÚ classmethodr7r6rDrNrPrTrJr'r[r!rrfr(Ú __classcell__)rs@rr/r/<sø„ñ
ô
ðñEóðEð
ñ+óð+ðñ óð ô"ô4òNôô ô
ò
Oò/ò&örr/N)r,rÚopenpyxl.compatrÚopenpyxl.cell.textrrÚopenpyxl.descriptorsrrr    Úopenpyxl.xml.functionsr
r r r4r/r-rrú<module>rqs?ðñõÝ)ß/÷ñ÷ 7ô"ô"ôVM4õMr