#NEWLINE# def listToString( self , listElement ) : #NEWLINE# #INDENT# buffer = '' #NEWLINE# styleName = listElement . getAttribute ( 'text:style-name' ) #NEWLINE# props = self . listStyles . get ( styleName , ListProperties ( ) ) #NEWLINE# i = 0 #NEWLINE# for item in i . childNodes : #NEWLINE# #INDENT# i += 1 #NEWLINE# if props . ordered : #NEWLINE# #INDENT# number = str ( i ) #NEWLINE# number = ( ( number + '.' ) + ( ' ' * ( 2 - len ( number ) ) ) ) #NEWLINE# buffer += ( number + self . paragraphToString ( item . childNodes [ 0 ] , indent = 3 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# buffer += ( '* ' + self . paragraphToString ( item . childNodes [ 0 ] , indent = 2 ) ) #NEWLINE# #UNINDENT# buffer += '\n\n' #NEWLINE# #UNINDENT# return buffer