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
InDesign Video: Save Search Queries
In this week’s InDesignSecrets video, Anne-Marie Concepción explains how to save...
Poll Results: Which Interface Color Theme Do You Use?
The results of our poll on what kinds of styles you use and a new poll asking ab...
Beware Overprinting White
Why white text can disappear in InDesign, when using a paragraph style and the O...
