Page 1 of 1
Start and end tags breaking across lines
Posted: Thu Aug 01, 2013 5:28 pm
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!
Re: Start and end tags breaking across lines
Posted: Thu Aug 01, 2013 6:03 pm
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
Re: Start and end tags breaking across lines
Posted: Thu Aug 01, 2013 6:29 pm
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.
Re: Start and end tags breaking across lines
Posted: Fri Aug 02, 2013 5:57 pm
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