Hi,
i am looking for a way to change the end of paragraphs (^p) into a new lines (^n) if the next paragraph has the same style.
Change consecutive paragraphs of the same style into one paragraph of that style – except the last one, in order to avoid changing the next (different) paragraph style.
Example:
Before (3 paragraphs of same style plus one paragraph with different style):
1. Nam, officipicim sinvenderis molorepernam que niet aut omnitat oditam quoditatur? Ulliqui odictem. Tium aut fuga. Unt.¶ //(paragraph style 1)
2. Ent. Restium corera volupid ut accatis dolore commod event aut aut quid et es as none dolorem facerspit assintor a autempos.¶ //(first paragraph style 1)
3. Ulliqui odictem. Tium aut fuga. Unt.¶ //(first paragraph style 1)
4. DUCIDUNTPARUM ACESTI RATIBUS.¶ //(paragraph style 2)
Afterwards:
1. Nam, officipicim sinvenderis molorepernam que niet aut omnitat oditam quoditatur? Ulliqui odictem. Tium aut fuga. Unt.<newLine> //(paragraph style 1)
2. Ent. Restium corera volupid ut accatis dolore commod event aut aut quid et es as none dolorem facerspit assintor a autempos.<newLine>
3. Ulliqui odictem. Tium aut fuga. Unt.¶ //(end of paragraph style 1)
4. DUCIDUNTPARUM ACESTI RATIBUS.¶ //(paragraph style 2)
This seems to be pretty easy, but i need some help after days of unsuccessful attempts…
Thank you for any hint!