This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270803 - Ask for a way to disable automatic formatting of XML elements content
Summary: Ask for a way to disable automatic formatting of XML elements content
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-04 12:30 UTC by herve66
Modified: 2017-06-04 12:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description herve66 2017-06-04 12:30:45 UTC
When editing an XML document, there is apparently no way to keep the formatting for the elements content. For example, if we have the following content:
<element>
first line
  indented content
</element>
upon saving the XML document will have this formatting:
<element>
first line
indented content
</element>

It would be great to have an option like for comments (where we can disable Format Block Comments for example) to avoid to have this kind of behavior.