Page 1 of 1

Format and indent breaks lines in attributes

Posted: Wed Mar 11, 2020 11:10 pm
by nvaughan
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

Re: Format and indent breaks lines in attributes

Posted: Thu Mar 12, 2020 10:47 am
by adrian
Hello,

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

Regards,
Adrian

Re: Format and indent breaks lines in attributes

Posted: Thu Mar 12, 2020 4:50 pm
by nvaughan
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

Re: Format and indent breaks lines in attributes

Posted: Thu Mar 12, 2020 6:17 pm
by adrian
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

Re: Format and indent breaks lines in attributes

Posted: Thu Mar 12, 2020 7:11 pm
by nvaughan
Hi Adrian,
Thanks. My version is 22.0, build 2020021016. I'll send my report.
Best,
Nicolas