Forum How do I...?

Keep with previous or next

newgen
To achieve keep with previous and keep with next options we are using break-after property, but is this the right approach?

Secondly if i want to achieve of retaining a certain number of lines with options keep with previous or keep with next, how do i do it?
markbrown
Unfortunately, we are not currently able to keep only a certain number of lines in Prince, as avoiding breaks before or after a paragraph results in avoiding breaks inside the paragraph too.

Mark

Edited by markbrown

newgen
Thanks for your confirmation Mark. By any chance do you have any plans on implementing this feature in your next release?

Thank you.
markbrown
It is currently on our roadmap, although we don't have specific plans for when to fix it. The required change is likely to be quite involved.

Thanks for letting us know about it, as it helps us to know how many users are affected.

Mark
mikeday
The latest builds now have modified behaviour for break avoid situations and will try to split previous blocks when applicable instead of shifting the entire block to the next page! :D