Skip to main content
Known Participant
August 28, 2022
Question

Remove empty line in a TextFrame

  • August 28, 2022
  • 2 replies
  • 165 views

Here for the below text frame, I'm able to remove the last empty line if there is a paragraph marker at the end of "Text3", but if there is a line break marker at the end of "Text3" I'm not able to remove the last empty line. Can anyone help with the solution with a script?

This topic has been closed for replies.

2 replies

rob day
Community Expert
Community Expert
September 15, 2022

Hi @SA8888 , Your invisibles are showing what appears to be a number of Hyperlink Destination markers in the text and after the last Forced Line Break. Try putting your cursor in the last line with the 4  markers and press Delete 4x:

 

 

Mike Witherell
Community Expert
Community Expert
September 15, 2022

How about a GREP search and replace? In GREP, a forced line break is \n and a hard return is \r and any line break is \R

Mike Witherell