Skip to main content
This topic has been closed for replies.
Correct answer George_Johnson

It's doesn't have to do with the editor. It is a bug in Acrobat. An empty line is added by Acrobat when a script is opened in an external editor, even when no changes are made or if changes are made but not saved before closing the external editor. This happens on both Windows and the Mac with all external editors I've ever used.

5 replies

Adobe Employee
January 18, 2017

With the latest release of Acrobat on 10th January 2017, this issue has been addressed.

To get the latest product update, within the product, click on the menu Help-> Check for updates.

For more information about the release, please refer to  Release Notes and the New Feature Summary .

Participant
November 1, 2024

It is not solved in the AI assistant. The text looks as if there are no blank lines, but when you copy the text into either Word or Markdown 2 to 3 blank lines are inserted between every sentence. It is very annoying and renders the AI assistent almost useless.

vivek1389
Adobe Employee
Adobe Employee
June 21, 2016

Thanks for bringing this issue to Adobe's notice. We have logged a bug for the same and our Engineering team will look into this.

Regards

Vivek Chandra

Inspiring
April 6, 2016

That most likely is a configuration issue with the editor you are using to create and edit the code.

hmn44Author
Known Participant
April 6, 2016

NotePad++ is very fine for me, I've been looking after that issue for a long time so far but still unsucessful

Inspiring
April 6, 2016

You can add the free macro to remove blank lines from the TextPad site and run that before saving.

Inspiring
April 6, 2016

Are you talking about an extra line being added at the end of the script each time the editor is used? If so, that's always happened to me, even if I don't actually revise the script text. It is mildly annoying.

hmn44Author
Known Participant
April 6, 2016

yes, almost, I can see that thesse extra lines are added just below  the comment  /********* appartient à which stand for belongs to (and for each module):

//<Document-Level>

//<ACRO_source>CalculStats9KSA</ACRO_source>

//<ACRO_script>

/*********** appartient à : Document-Level:CalculStats9KSA ***********/

function CalculStats9KSA(PNT){

Inspiring
April 6, 2016

It happens for me when you edit individual scripts. It also adds a line at the beginning of individual scripts whenever I select the "Edit All JavaScripts" options, which I rarely use and don't save if I use it to just view the scripts.

try67
Community Expert
Community Expert
April 6, 2016

What do you mean by that, exactly?

hmn44Author
Known Participant
April 6, 2016

I mean that almost each time I re open my scripts, I can see that some blank lines are added. For information I'm using NotePad++ editor.

hmn44Author
Known Participant
April 6, 2016

so I use the search (\n\n)  and replace "" to delete these empty lines.

Is it due to Notepad as editor ?