• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Remove empty line in a TextFrame

Community Beginner ,
Aug 27, 2022 Aug 27, 2022

Copy link to clipboard

Copied

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?

Text_frame.jpeg

TOPICS
Scripting

Views

89

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 15, 2022 Sep 15, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 15, 2022 Sep 15, 2022

Copy link to clipboard

Copied

LATEST

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:

 

Screen Shot 21.pngScreen Shot 22.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines