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

Summary: Ask for a way to disable automatic formatting of XML elements content
Product: editor Reporter: herve66
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: ENHANCEMENT Exception Reporter:

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.