This script removes all duplicated lines:
text = DrDocument.GetText()
eol = DrDocument.GetEndOfLineCharacter()
text = text.split(eol)
#oneliner from German Python Forum (remove from list doubled entries)
text = eol.join([text[i] for i in xrange(len(text)) if text[i] not in text[:i]])
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.