Skip to main content
1-Visitor
June 6, 2016
Solved

Arbortext Editor 6.1 randomly adds unwanted newlines, aka carriage returns, througout the text

  • June 6, 2016
  • 1 reply
  • 4477 views

Arbortext Editor 6.1 adds unwanted newlines aka Carriage Returns througout the text. They are not visible within the editor but are visible in any text editor. This is an extremely annoying behaviour. Is there any way to turn this "feature" off. For anyone that runs scripts over the markup this is a pain because this breaks search patterns.

Example: The newlines break at odd places, for example there's a cr after <xref:

in accordance with sub-paragraph <xref

linkend="myid"></xref>.

Best answer by GregoryMackenzi

Ok per your suggestion if the outputrecordlength is set to infinity all newlines are removed from the xml file. If you already have a file full of newlines, setting this and then re-opening and saving the file will remove all of the unwanted newlines aka carriage returns.

In the Editor:

Tools/Preferences

Click on the dialog's Advanced... button

scroll down the list to outputrecordlength

select it, click on the edit button

set it to infinity, it is 72 by default in my installation of the editor

Close

OK

.

1 reply

12-Amethyst
June 6, 2016

In Arbortext Editor there is writenobreakattag variable.

Set this to a value of "on".

In Arbortext Editor one can set the outputrecordlength.

This may help also.

See Arbortext Editor's Help Center for further details.

1-Visitor
June 6, 2016

Thank you Tim, I'll give that a try, hopefully that will cure the problem.

In the meantime I also wrote a little Omnimark script to remove the unwanted returns:

;omnimark -sb om_newline_cleaner.om input.txt -of output.txt -log error.txt

cross-translate

;PURPOSE

;The purpose of this script is to remove newlines from PTC Arbortext 6.1 text.

;Script Author Greg MacKenzie

find (">" white-space* "<") => ThrowAway; finds newlines, tabs, and other spaces between tags
output "><" ;removes newlines from in between tag brackets

find "%n" => ThrowAway; all remaining newlines should be in the middle of text or markup, bears checking though
output " " ;adds a space where the newline was