#NEWLINE# def apply( self ) : #NEWLINE# #INDENT# language = languages . get_language ( self . document . settings . language_code , self . document . reporter ) #NEWLINE# name = language . labels [ 'contents' ] #NEWLINE# title = nodes . title ( '' , name ) #NEWLINE# topic = nodes . topic ( '' , title , classes = [ 'contents' ] ) #NEWLINE# name = nodes . fully_normalize_name ( name ) #NEWLINE# if ( not self . document . has_name ( name ) ) : #NEWLINE# #INDENT# topic [ 'names' ] . append ( name ) #NEWLINE# #UNINDENT# self . document . note_implicit_target ( topic ) #NEWLINE# pending = nodes . pending ( parts . Contents ) #NEWLINE# topic += pending #NEWLINE# self . document . insert ( 1 , topic ) #NEWLINE# self . document . note_pending ( pending )