Ask Your Question

Finding paragraphs with duplicate text

asked 2017-07-28 18:52:24 +0100

porton gravatar image

I want to check (and eliminate) that two paragraphs in a part of text (or entire text, this does not matter for my task) have no identical text.

In other words, if two paragraphs have the same text:



this should be noted so that I could delete the second paragraph.

Note that only text matters; colors, level of indent, style, etc. don't matter when finding paragraphs with duplicate text.

I suspect it can be done in LibreOffice Basic, but I don't want to learn it to solve this problem only. Could anyone write a macro for me?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-07-30 16:46:43 +0100

librebel gravatar image

Hello @porton,

such a macro in Basic has already been written by JohnV on the other forum, and also a possibly faster macro in Python has been written by @karolus on that same page.

Link: How to find duplicate paragraphs?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-07-28 18:52:24 +0100

Seen: 315 times

Last updated: Jul 30 '17