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 254619

Summary: Wrong indentation of new line in embedded css
Product: javascript Reporter: Vladimir Riha <vriha>
Component: JadeAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2015-08-22 19:00:12 UTC
Please try

doctype html
html
  head
    title Jade compilation demo
    style.
        div:active::before{color:red}
        a {^}
    meta(accesskey='h')



and place cursor to position of ^ and press Enter, the result is


doctype html
html
  head
    title Jade compilation demo
    style.
        div:active::before{color:red}
        a {
            
}
    meta(accesskey='h')



but it should be


    doctype html
    html
      head
        title Jade compilation demo
        style.
            div:active::before{color:red}
            a {

            }
        meta(accesskey='h')



Thank you



Product Version: NetBeans IDE Dev (Build 201508220002)
Java: 1.8.0_60; Java HotSpot(TM) Client VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2015-09-11 10:15:22 UTC
The enter is included in an embedded css part. So this should be probably solved in css.