#NEWLINE# def handle_decl( self , data ) : #NEWLINE# #INDENT# self . soup . endData ( ) #NEWLINE# if data . startswith ( 'DOCTYPE ' ) : #NEWLINE# #INDENT# data = data [ len ( 'DOCTYPE ' ) : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( data == 'DOCTYPE' ) : #NEWLINE# #INDENT# data = '' #NEWLINE# #UNINDENT# #UNINDENT# self . soup . handle_data ( data ) #NEWLINE# self . soup . endData ( Doctype )