Tip of the Week: De-Runt Your Paragraphs With a GREP Style
This InDesign tip was sent to Tip of the Week email subscribers on June 20, 2019.

Sign up now and every week you’ll get a new tip, keyboard shortcut, and roundups of new articles, plus exclusive deals sent right to your Inbox!
Just scroll down to the bottom of this page, enter your email address, and click Go! We’ll take care of the rest. Now, on with the tip!
Although you can control quite a few widow and orphan settings with InDesign’s Keep Option settings, one problem remains: a too-short last line (sometimes called a “runt”). Let’s assume you have a style rule that states the last line of a paragraph must contain at least 10 characters. The following GREP Style trick helps you follow that style.
1. Start by creating a Character Style called “no break” that only has the No Break option enabled.
2. Next, add a new GREP Style to your paragraph style, set the Apply Style pop-up menu to the “no break” character style you created earlier, then enter the following regular expression in the To Text field:
.{10}$ (That’s a dot-curly-ten-curly-dollar sign.)
Now any 10 last characters of the paragraph will never be broken.
This article was last modified on May 6, 2020
This article was first published on June 24, 2019
Commenting is easier and faster when you're logged in!
Recommended for you
Understanding the Pros & Cons of Digital Printing
Digital presses have revolutionized printing: they’re fast, flexible, and high q...
InDesign How-to Video: How to Customize Placeholder Text
In this week’s InDesignSecrets video, Erica Gamet shows us how to customize InDe...
Avoiding the Insane Behavior of Undocked Panels
Pet peeves. We all have ’em. And if you spend enough time using any software pro...
