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 173363

Summary: New line breaks code
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 130138    

Description Alexandr Scherbatiy 2009-09-30 10:12:02 UTC
Product Version         = NetBeans IDE 6.8 Beta (Build 200909281634) (#066b555e5ecf)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.



Steps to reproduce:

- Copy the code to the editor:
------------------------------------------------------
var names = ["Petr"];
------------------------------------------------------

- Position cursor before "Petr" string
------------------------------------------------------
var names = [|"Petr"]; // | means cursor
------------------------------------------------------

- Press Enter

The result is:
------------------------------------------------------
var names = ["  
""Petr"];
------------------------------------------------------


Main.fx:11: Unterminated string literal - missing ' or ".
var names = ["
Main.fx:12: Unterminated string literal - missing ' or ".
""Petr"];
Main.fx:12: It looks like you are missing a ',' delimiter or perhaps have a malformed expression here?
""Petr"];
Main.fx:12: Sorry, I was trying to understand a sequence creation expression but I got confused when I hit the end of
the script..
 Perhaps you are missing a ']'.
""Petr"];
4 errors
Comment 1 Miloslav Metelka 2009-11-14 11:40:20 UTC
http://hg.netbeans.org/javafx/rev/37b96a7dde3b
Comment 2 Alexandr Scherbatiy 2009-11-17 07:29:59 UTC
verified in Build 200911170201