Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

GREP for Non-Breaking Space before Last Word in Paragraph?

Return to Member Forum

  • Author
    Posts
    • #14369667
      Michelle Florence
      Participant

      I’m trying to see if it’s possible to create a GREP that inserts a non-breaking space before the last word in a paragraph to avoid “runts” and “widows”. I’ve tried different GREPs for specific number of letters but struggling to get it to work. Any suggestions? Is this even possible? Thanks in advance!! :)

    • #14369679
      Dhafir Photo
      Participant

      Use this:
      in Find: +(?=\S+*$)
      in Change: ~S

    • #14370788
      Petar Petrenko
      Participant

      I use:

      Apply Style: No break
      To text: .{10}$

      it works fine to me.

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads