™N cK•;cs¬dZ kZkZkZkZkZ kZdZdd„Zbddd„Z zd„Z ~d„Z —e djo ˜e e eiƒeiƒndS( s0 html2text.py convert an html doc to text iPc sãtidd|ƒ}tidd|ƒ}ti|ddƒ}g}tid|ƒ}xÈ|dr»}ti |d ƒd joˆti d |ƒ}| oti d |ƒ}n |o1!|i d ||i d ƒ|id ƒ!ƒn#|i dƒn%|i |ƒquW&ti|dƒ}'tidd|ƒ}(tiddddd|ƒ})tidd|ƒ}*|o+tidd|ƒ}n-tidd|ƒ}.|o/tidd|ƒ}n1tidd|ƒ}2tidd|ƒ}3tidd|ƒ}4tidd|ƒ}5tidd |ƒ}6|o”7tid!d"|ƒ}8tid#d$|ƒ}9tid%d&|ƒ}:tid'd$|ƒ};tid(d)|ƒ}<tid*d+|ƒ}n1>tid(d|ƒ}?tid*d |ƒ}@tid,d|ƒ}Atid-d|ƒ}Btid.d|ƒ}Ctid/d0|ƒ}Dtid1d0|ƒ}Etid2d|ƒ}Fti|dƒ}Gg}Hxt|dHrg} I| d3joJ|d }nAK| d4jo.L|d }M|djo Md}nnN| d5joO|d }nâP| d6jo.Q|d }R|djo Rd}nn¤T|oUd7|ti| ƒ} Vtid8d| ƒ} Wtid9d| ƒ} Xtd:t| ƒd:} Y|i d| | ƒn[|i d7|| ƒqW\ti|dƒ}]tid2d|ƒ}^tid;d<|ƒ}_tid9d|ƒ}`|||fSdS(=Ns\s+s s(?s)ss s(?si)()iiss (?i)]*>s-i2s(?i)
  • s * s (?i)s s (?i)s s(?i)
      s
        s (?i)
      s
    s (?i)
    s
    s (?i)
    s
    s(?i)ss(?i)ss(?i)ss(?i)s (?i)s��� <CENTER> s ���(?i)s s(?i)

    s (?i)]*>s (?i)s (?i)]*>s s (?i)]*>s * s

      s
    s
    s
    s s\[.*?ms<[^>]*>is *s (sressubsdatasstringsreplacesoutputssplitsimgssimgslowerssearchsaltsappendsstartsendsjoinsuse_ansislinesslinesindentscentersstripsnlinesWIDTHslensc( sdatascentersindentsuse_ansisoutputsimgssimgsaltslinesslinesnlinescs./html2text.pys tag_replaces    1$        ic sxbctid|ƒ}dg}ed}fd}gx„|dgrw}h|d djo5it||||ƒ\}}}j|i |ƒn)lti dd|ƒ}m|i |ƒq?Wnt i|ƒ}oti dd|ƒ}pti d d |ƒ}qti d d |ƒ}r|oLsti d d|ƒ}tti dd|ƒ}uti dd|ƒ}nw|SdS(Ns(?s)(
    [^<]*
    )iis
    s(?i)ss>s>s<s(sprognames__doc__(sprognames./html2text.pysusagezsc
    sý~|d}€ti|dddgƒ\}}‚xA|d‚r4\}}ƒ|djo„t|ƒ…dSnqAW‡t|ƒoˆ|d}nŠ|d}Œt
    |ƒ}|iƒ}	Ž|iƒ|	o‘t|	ƒGHn	“dGHdS(Niisshelps--helpsDocument contained no data(sargvsprognamesgetoptsalistsargssfieldsvalsusageslensfilesopensfpsreadsdatascloses	html2text(
    sargcsargvsprognamesalistsargssfieldsvalsfilesfpsdatas./html2text.pysmain~s 
    %
    
    
    
    s__main__N(s__doc__sosssyssstringstimesgetoptsresWIDTHstag_replaces	html2textsusagesmains__name__slensargv(s./html2text.pys?s!		Q