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 251057 - Content in string literals are formatted by Format
Summary: Content in string literals are formatted by Format
Status: REOPENED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal with 4 votes (vote)
Assignee: Roman Svitanic
URL:
Keywords:
: 251495 254127 254549 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-10 09:15 UTC by gugrim
Modified: 2017-11-15 16:19 UTC (History)
6 users (show)

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 gugrim 2015-03-10 09:15:40 UTC
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.
Comment 1 Vladimir Riha 2015-03-10 09:21:09 UTC
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)
Comment 2 Roman Svitanic 2015-03-10 10:04:19 UTC
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
Comment 3 Quality Engineering 2015-03-11 04:06:42 UTC
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
Comment 4 Vladimir Riha 2015-03-16 14:37:17 UTC
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)
Comment 5 Roman Svitanic 2015-03-30 08:16:40 UTC
*** Bug 251495 has been marked as a duplicate of this bug. ***
Comment 6 gugrim 2015-04-04 13:26:55 UTC
When can we expect this fix to be available as an update for 8.0.2?
Comment 7 Roman Svitanic 2015-08-04 13:59:00 UTC
*** Bug 254127 has been marked as a duplicate of this bug. ***
Comment 8 Roman Svitanic 2015-08-27 06:33:26 UTC
*** Bug 254549 has been marked as a duplicate of this bug. ***
Comment 9 Christian Lenz 2016-01-28 08:14:18 UTC
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>
Comment 10 Christian Lenz 2016-03-29 11:25:56 UTC
As I already commented, it happens in 8.1 again.
Comment 11 newable 2017-11-15 15:38:18 UTC
Still happens in 8.2
Comment 12 Christian Lenz 2017-11-15 16:19:34 UTC
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.