#NEWLINE# def visit_docinfo_item( self , node , name , meta = True ) : #NEWLINE# #INDENT# if node : #NEWLINE# #INDENT# meta_tag = ( '<meta name="%s" content="%s">\n' % ( name , self . attval ( node . astext ( ) ) ) ) #NEWLINE# self . add_meta ( meta_tag ) #NEWLINE# #UNINDENT# self . body . append ( self . starttag ( node , 'tr' , '' ) ) #NEWLINE# self . body . append ( ( '<th class="docinfo-name">%s:</th>\n<td>' % self . language . labels [ name ] ) ) #NEWLINE# if len ( node ) : #NEWLINE# #INDENT# if isinstance ( node [ 0 ] , nodes . Element ) : #NEWLINE# #INDENT# node [ 0 ] [ 'classes' ] . append ( 'first' ) #NEWLINE# #UNINDENT# if isinstance ( node [ ( - 1 ) ] , nodes . Element ) : #NEWLINE# #INDENT# node [ ( - 1 ) ] [ 'classes' ] . append ( 'last' )