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.
When formatting an HTML page, string literal content is formatted. Before formatting I had this attribute on a div in an Agular view: ng-class="($first ? '' : 'hidden-xs hidden-sm')" After formatting, NetBeans changed it into this: ng-class="($first ? '' : 'hidden - xs hidden - sm')" This is pretty serious IMO since the page presentation is messed up by incorrect classes.
Reproducible Product Version: NetBeans IDE Dev (Build 201503040001) Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Changeset: b83859b264f2 Author: Roman Svitanic <rsvitanic@netbeans.org> Date: 2015-03-10 11:04 Message: #251057: Content in string literals are formatted by Format - fixed
Integrated into 'main-silver', will be available in build *201503110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b83859b264f2 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #251057: Content in string literals are formatted by Format - fixed Task #251057 - Content in string literals are formatted by Format
Verified, thank you Product Version: NetBeans IDE Dev (Build 201503160001) Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
*** Bug 251495 has been marked as a duplicate of this bug. ***
When can we expect this fix to be available as an update for 8.0.2?
*** Bug 254127 has been marked as a duplicate of this bug. ***
*** Bug 254549 has been marked as a duplicate of this bug. ***
This already happens in NB 8.1, should I create a new bug for this? My piece of code looks like: <div class="preview" data-ng-class="{true:'col-xs-6', false:'col-xs-9'}[detailVm.showContext]" ui-view="preview"></div> and it makes: <div class="preview" data-ng-class="{true:'col - xs - 6', false:'col - xs - 9'}[detailVm.showContext]" ui-view="preview"></div>
As I already commented, it happens in 8.1 again.
Still happens in 8.2
Would be good, to create a new ticket here: https://issues.apache.org/jira/projects/NETBEANS with this ticket as external link. We can close this here after we created a new one.