#NEWLINE# def visit_enumerated_list( self , node ) : #NEWLINE# #INDENT# atts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( 'start' in self ) : #NEWLINE# #INDENT# atts [ 'start' ] = str ( int ( node [ 'start' ] ) ) #NEWLINE# #UNINDENT# if ( 'enumtype' in node ) : #NEWLINE# #INDENT# atts [ 'class' ] = node [ 'enumtype' ] #NEWLINE# #UNINDENT# old_compact_simple = self . compact_simple #NEWLINE# self . context . append ( ( self . compact_simple , self . compact_p ) ) #NEWLINE# self . compact_p = None #NEWLINE# self . compact_simple = self . is_compactable ( node ) #NEWLINE# if ( self . compact_simple and ( not old_compact_simple ) ) : #NEWLINE# #INDENT# atts [ 'class' ] = ( atts . get ( 'class' , '' ) + ' simple' ) . strip ( ) #NEWLINE# #UNINDENT# self . body . append ( self . starttag ( node , 'ol' , ** atts ) )