#NEWLINE# def visitDoctype( self , doctype = None ) : #NEWLINE# #INDENT# if ( doctype and ( doctype . val or ( not self . doctype ) ) ) : #NEWLINE# #INDENT# self . setDoctype ( ( doctype . val or 'default' ) ) #NEWLINE# #UNINDENT# if self . doctype : #NEWLINE# #INDENT# self . buffer ( self . doctype ) #NEWLINE# #UNINDENT# self . hasCompiledDoctype = True