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 218054 - Create rule action does not enter new line
Summary: Create rule action does not enter new line
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
: 225190 232016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-10 08:59 UTC by Vladimir Riha
Modified: 2016-08-30 06:16 UTC (History)
3 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 Vladimir Riha 2012-09-10 08:59:39 UTC
If you have nonexisting class rule used in HTML code and use the hint to create it in some css file, then this process does not append a new line at the end. Let's say I have this css file:

=== CSS START===
.rule{

}
=== CSS END===

Now if I use the hint action, result would be

=== CSS START===
.rule{

}.newrule{

}
=== CSS END===


Product Version: NetBeans IDE Dev (Build 201209100001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Marek Fukala 2012-09-12 06:22:41 UTC
This happens only if there's no new line after the last rule
Comment 2 Marek Fukala 2012-09-12 06:27:05 UTC
Seems to be another bug in the internal DiffProvider - the modified source code properly contains the newline after the last rule closing curly bracket, however the computed Difference of ADD type doesn't.
Comment 3 Vladimir Riha 2013-01-22 14:55:55 UTC
*** Bug 225190 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Riha 2013-06-29 08:36:15 UTC
*** Bug 232016 has been marked as a duplicate of this bug. ***
Comment 5 amobilia 2016-08-30 06:11:05 UTC
Problem still present in 8.2 dev
Comment 6 Vladimir Riha 2016-08-30 06:16:22 UTC
Please don't change the version against which it was initially reported.

Thank you