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 219794 - xml comments formatting problem. when tab and space mixed.
Summary: xml comments formatting problem. when tab and space mixed.
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 07:54 UTC by fortruth
Modified: 2012-10-20 01:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2012-10-10 07:54:56 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Linux version 3.2.0-32-generic running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK 64-Bit Server VM 20.0-b12

//convert tabs to space not selected
//indent space = 4
//tabs size = 4

for example:
===========
<?xml version="1.0" encoding="UTF-8"?>
<project name="DemoProject" default="deploy" basedir=".">    
<!--
<delete file="javalibs/logprovider.jar">
</delete> 	
-->
</target>
</project>
==========
after alt+shift+f , it is ok. 
==========
<?xml version="1.0" encoding="UTF-8"?>
<project name="DemoProject" default="deploy" basedir=".">    
	<!--
	<delete file="javalibs/logprovider.jar">
	</delete> 	
	-->
</target>
</project>

==============
now  there are 3 space before <delete and </delete
===========
<?xml version="1.0" encoding="UTF-8"?>
<project name="DemoProject" default="deploy" basedir=".">    
<!--
   <delete file="javalibs/logprovider.jar">
   </delete> 	
-->
</target>
</project>
=================
after twice alt+shift+f, it is wrong.
=================
<?xml version="1.0" encoding="UTF-8"?>
<project name="DemoProject" default="deploy" basedir=".">    
	<!--
 <delete file="javalibs/logprovider.jar">
 </delete> 	
	-->
</target>
</project>
Comment 1 Svata Dedic 2012-10-19 08:41:16 UTC
Changeset: 58af4f4c52ff
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-10-19 10:41
Message:   Proper indenting of block comments when tabs are not converted to spaces
Comment 2 Quality Engineering 2012-10-20 01:29:12 UTC
Integrated into 'main-golden', will be available in build *201210200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/58af4f4c52ff
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #219794 - xml comments formatting problem. when tab and space mixed.: fixed
Proper indenting of block comments when tabs are not converted to spaces