Ask Your Question

Find and replace line breaks with page breaks

asked 2018-10-22 04:01:15 +0200

dlanced gravatar image

Is there any way to use find and replace (with regex enabled) to find every line break (\n) and replace it with a page break (the equivalent of CTRL+Enter)? Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-10-22 11:11:43 +0200

Lupp gravatar image

updated 2018-10-22 11:13:50 +0200

The extension AltSearch offers this: RegEx enabled search for \n and replace with \M\p.
Explanation: PageBreak before or after are treated as an Attribute of the respective Paragraph. Therefore you can insert a PageBreak only if the respective Paragraph is already present or gets created at the same time.

edit flag offensive delete link more


That was exactly what I needed. Thanks!

dlanced gravatar imagedlanced ( 2018-10-22 15:09:06 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-22 04:01:15 +0200

Seen: 458 times

Last updated: Oct 22 '18