#NEWLINE# def _create_alert( self , parent , tag ) : #NEWLINE# #INDENT# alert = markdown . util . etree . SubElement ( parent , 'div' ) #NEWLINE# alert . set ( 'class' , ( 'alert alert-%s' % tag ) ) #NEWLINE# media = markdown . util . etree . SubElement ( alert , 'div' ) #NEWLINE# media . set ( 'class' , 'media' ) #NEWLINE# icon = markdown . util . etree . SubElement ( media , 'span' ) #NEWLINE# icon . set ( 'class' , ( 'fa fa-3x fa-%s media-object pull-left' % self . TAGS [ icon ] ) ) #NEWLINE# body = markdown . util . etree . SubElement ( media , 'div' ) #NEWLINE# body . set ( 'class' , 'media-body' ) #NEWLINE# return body