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 254549

Summary: Autoformat (source->format) breaks classes inside angularjs expression
Product: web Reporter: Dmitrysh
Component: AngularJSAssignee: Roman Svitanic <rsvitanic>
Status: RESOLVED DUPLICATE    
Severity: normal CC: Dmitrysh, ppisl
Priority: P3    
Version: 8.0.2   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Dmitrysh 2015-08-20 09:38:17 UTC
Steps to reproduce:

1. Open netbeans 8.0.2 for mac. In my case, I have PHP edition.

2. Create a new empty html file with the following:
<i class="fa" ng-class="somethingHere ? 'fa-star' : 'fa-star-o'"></i>

3. Go to the Source->format

it will produce:
<i class="fa" ng-class="somethingHere ? 'fa-star' : 'fa - star - o'"></i>


So for some reasons fa-star-o replaced with fa[space]-[space]star[space]-[space]o
Comment 1 Roman Svitanic 2015-08-27 06:33:26 UTC

*** This bug has been marked as a duplicate of bug 251057 ***