#NEWLINE# @ property #NEWLINE# def text( self ) : #NEWLINE# #INDENT# '\n        Return the <Types ...> XML for this content types item formatted for\n        minimal diffs. The <Default> and <Override> child elements are sorted\n        to remove arbitrary ordering between package saves.\n        ' #NEWLINE# lines = self . xml . split ( '\n' ) #NEWLINE# defaults = sorted ( [ l for l in lines if l . startswith ( '  <D' ) ] ) #NEWLINE# overrides = sorted ( [ l for l in lines if l . startswith ( '  <O' ) ] ) #NEWLINE# out_lines = ( ( ( lines [ : 2 ] + defaults ) + overrides ) + lines [ ( - 1 ) : ] ) #NEWLINE# out = '\n' . join ( out_lines ) #NEWLINE# return out