The Mystery of the Trailing Space Contest Answer and Winner
Solve this InDesign mystery for a chance at winning a great prize.
It’s time to reveal the solution—and the winner—for this month’s InDesignSecrets contest!
Here’s the scenario:
You receive an InDesign document with text formatted in a Body Text paragraph style. The Body Text style includes a GREP style to prevent runts from occurring. You notice there are trailing spaces at the ends of some paragraphs, and decide to remove them to clean up the document.

When you delete some of the trailing spaces, the paragraph text completely rewraps.

In other paragraphs, removing the trailing space does nothing.

Why does the paragraph text sometimes rewrap when the trailing space is removed?
Solution: The culprit is the GREP style in the Body Text paragraph style. It was used to prevent runts from occurring by automatically applying a No Break character style to the last 9 characters of the paragraph.

The method is explained in this article about runts. It uses the GREP wildcard code for “any character”, which includes whitespace characters, like the trailing space.
So when that trailing space is removed, the range of characters where No Break is applied shifts one character earlier in the paragraph, which can cause the text to rewrap.
And the winner of this contest is…
Tuyen Pham
Tuyen wins 3 months access to videos of any 2 days of CreativePro Week 2017.
Thanks to everyone who entered, and be on the lookout for another contest with a new great prize next month!
This article was last modified on July 25, 2019
This article was first published on October 30, 2017
Commenting is easier and faster when you're logged in!
Recommended for you
InDesign Magazine Issue 74: Flipbooks
We’re happy to announce that InDesign Magazine Issue 74 (June, 2015) is now avai...
When Character Styles Collide
One paragraph style can apply a whole bunch of character styles to the same rang...
Find Spacing Problems by Displaying Spaces Instead of Text
Our friend and colleague Nigel French (author of the book InDesign Type) reminde...
