#NEWLINE# def run( self ) : #NEWLINE# #INDENT# env = self . state . document . settings . env #NEWLINE# app = env . app #NEWLINE# namespace = ' ' . join ( self . content ) . strip ( ) #NEWLINE# app . info ( ( 'documenting plugins from %r' % namespace ) ) #NEWLINE# overline_style = self . options . get ( 'overline-style' , '' ) #NEWLINE# underline_style = self . options . get ( 'underline-style' , '=' ) #NEWLINE# def report_load_failure( mgr , ep , err ) : #NEWLINE# #INDENT# app . warn ( ( 'Failed to load %s: %s' % ( ep . module_name , err ) ) ) #NEWLINE# #UNINDENT# mgr = extension . ExtensionManager ( namespace , on_load_failure_callback = report_load_failure ) #NEWLINE# result = ViewList ( ) #NEWLINE# titlecase = ( 'titlecase' in self . options ) #NEWLINE# if ( 'detailed' in self . options ) : #NEWLINE# #INDENT# data = _detailed_list ( mgr , over = overline_style , under = underline_style , titlecase = titlecase ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = _simple_list ( mgr ) #NEWLINE# #UNINDENT# for ( text , source ) in data : #NEWLINE# #INDENT# for line in text . splitlines ( ) : #NEWLINE# #INDENT# result . append ( line , source ) #NEWLINE# #UNINDENT# #UNINDENT# node = nodes . section ( ) #NEWLINE# node . document = self . state . document #NEWLINE# nested_parse_with_titles ( titlecase . state , result , node ) #NEWLINE# return node . children