Can attribute values be assigned "Default Space"
Posted: Thu Dec 19, 2019 12:12 am
In Editor > Format > XML or elsewhere, is it possible to "normalize" attribute values (eliminate consecutive white-space characters). I'm using the Break Long Attributes setting but when new content is added and a "Format and Indent" is performed extra spaces are generated in attribute values. I've tried adding attributes manually via XPath to the "Default Space" list to no avail.
Example
Before:
After content change and format and indent:
From here https://www.oxygenxml.com/doc/versions/ ... odes2.html I see
Example
Before:
Code: Select all
<p>Lorem ipsum dolor sit amet, consectetur <example list="Lorem, ipsum,
dolor, sit, amet, consectetur"/>
Code: Select all
<p>Lorem ipsum dolor sit. Lorem ipsum dolor sit amet, consectetur
<example list="Lorem, ipsum, dolor, sit, amet, consectetur"/>
This seems to create a difficult situation with the Break Long Attributes option and indenting.Attribute values are always in the preserve space category