#NEWLINE# def link( self , link , title , content ) : #NEWLINE# #INDENT# width = 650 #NEWLINE# height = 366 #NEWLINE# if title : #NEWLINE# #INDENT# pattern = '(\\d{3,4})[^\\d]+(\\d{3})' #NEWLINE# match = re . match ( pattern , title ) #NEWLINE# if match : #NEWLINE# #INDENT# width = match . group ( 1 ) #NEWLINE# height = match . group ( 2 ) #NEWLINE# #UNINDENT# #UNINDENT# html = embed ( link , width , height , content ) #NEWLINE# if html : #NEWLINE# #INDENT# return html #NEWLINE# #UNINDENT# html = ( '<a href="%s"' % link ) #NEWLINE# if title : #NEWLINE# #INDENT# html = ( '%s title="%s"' % ( html , title ) ) #NEWLINE# #UNINDENT# html = ( '%s>%s</a>' % ( html , content ) ) #NEWLINE# return html