Format and indent breaks lines in attributes

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
nvaughan
Posts: 3
Joined: Sat Feb 29, 2020 10:32 pm

Format and indent breaks lines in attributes

Post by nvaughan » Wed Mar 11, 2020 11:10 pm

How can I avoid breaking lines within tags when using the Format and Indent function?

I have:

Code: Select all

<foreign xml:lang="la">Politana</foreign>, 
and the Format and Indent function produces:

Code: Select all

<foreign 
    xml:lang="la">Politana</foreign>,
 
An image of my settings are here:
https://imgur.com/8xMM9z7

adrian
Posts: 2634
Joined: Tue May 17, 2005 4:01 pm

Re: Format and indent breaks lines in attributes

Post by adrian » Thu Mar 12, 2020 10:47 am

Hello,

You should disable "Break line before an attribute name" (default disabled).

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

nvaughan
Posts: 3
Joined: Sat Feb 29, 2020 10:32 pm

Re: Format and indent breaks lines in attributes

Post by nvaughan » Thu Mar 12, 2020 4:50 pm

Hi Adrian,
Thanks for your reply. I did what you said, but still keep getting the same result.
See this animated git I just recorded:
Image
https://imgur.com/vH4d5z1

adrian
Posts: 2634
Joined: Tue May 17, 2005 4:01 pm

Re: Format and indent breaks lines in attributes

Post by adrian » Thu Mar 12, 2020 6:17 pm

Hi,

What version and build of Oxygen are you using (Help > About)?

That's actually a completely different example and result than what you've shown in your initial post. Tag still gets a line break, but not before the attribute.
I can't tell why this is happening. Please send us a sample (code snippet where this happens) file and the exported options file (Options > Export Global Options) to support@oxygenxml.com .

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

nvaughan
Posts: 3
Joined: Sat Feb 29, 2020 10:32 pm

Re: Format and indent breaks lines in attributes

Post by nvaughan » Thu Mar 12, 2020 7:11 pm

Hi Adrian,
Thanks. My version is 22.0, build 2020021016. I'll send my report.
Best,
Nicolas

Post Reply