Start and end tags breaking across lines

Oxygen general issues.
dtprice
Posts: 2
Joined: Thu Aug 01, 2013 5:21 pm

Start and end tags breaking across lines

Post by dtprice »

Running into this problem: Start and end tags breaking across lines, as in this example:

Enable selective backup using
<link linkend="glos_transportable_tablespace"
>transportable

Running XML Author 14.1, build 2012121012 with default editor settings (in Options > Preferences > Editor).

Any suggestions as to what might be causing this?

Thanks!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Start and end tags breaking across lines

Post by adrian »

Hi,

This can happen if the formatting options are set to break the line at a certain width (by default 100 characters) and there are no other whitespaces between the tag and the text content that the formatting tool can use to normalize and break the line.

Note that this behavior does not have any consequences XML-wise. The XML has the same meaning, so it's only cosmetic.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
dtprice
Posts: 2
Joined: Thu Aug 01, 2013 5:21 pm

Re: Start and end tags breaking across lines

Post by dtprice »

Thank you, Adrian. This helps. We do some processing on our XML files. The scripts we use expect start and end tags on the same line.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Start and end tags breaking across lines

Post by adrian »

Hi,

If you need to tweak them, the formatting options are located in Options > Preferences, Editor / Format. However, note that you can't disable this specific behavior (line break in tag), but you can work around it by increasing the line width.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply