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 254543

Summary: Format of html file always results in changes
Product: web Reporter: terje7601
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2015-08-20 08:40:25 UTC
To reproduce, create a new HTML5/JS Application. Format the created index.html & save the changes. If you do format again now, the file has been changed again.

The expected behavior is: if I do format and save. And then immediately do format again, the file is not changed & not marked as such by NetBeans either.

Product Version: NetBeans IDE Dev (Build 201508030002)
Updates: Updates available
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Milutin Kristofic 2015-08-31 13:00:30 UTC
I cannot reproduce this with default formatting. Do you have a special formatting values? Can you try this with new/empty userdir? Thank you

Product Version: NetBeans IDE Dev (Build 20150824-50d98d8f65ed)
Updates: Updates available
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.16.0-45-generic running on amd64; UTF-8; en_US (
Comment 2 terje7601 2015-09-14 08:05:55 UTC
(In reply to Milutin Kristofic from comment #1)
> I cannot reproduce this with default formatting.
Yes, it's not reproducible with default formatting values. However, it's 100% reproducible with special formatting values.

> Do you have a special formatting values?
I changed the formatting values for HTML -> Tabs And Indents as follows:
uncheck "Use All Languages Settings"
uncheck "Expand Tabs to Spaces"
set "Number of Spaces per Indent" to 2
set "Tab Size" to 4

> Can you try this with new/empty userdir?
Both cachedir and userdir are new.

Product Version: NetBeans IDE Dev (Build 201509130002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Milutin Kristofic 2015-09-16 13:06:15 UTC
Now, I can reproduce this. Thank you for reproducible steps
Comment 4 Milutin Kristofic 2015-09-16 14:19:19 UTC
http://hg.netbeans.org/web-main/rev/059d206acbfc

The issue was caused by always changing tab sometimes changing same 1 tab with 1 another tab.
Comment 5 Quality Engineering 2015-09-17 01:26:51 UTC
Integrated into 'main-silver', will be available in build *201509170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/059d206acbfc
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #254543 - Format of html file always results in changes