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 188013

Summary: Bug when commenting out a line in an .erb file (NetBeans 6.9)
Product: ruby Reporter: mattslay
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description mattslay 2010-06-23 23:23:15 UTC
There is a bug in NetBeans 6.9 when using the Comment icon in the toolbar when editing a Ruby .erb view file... 

Example: 

Uncommented code before clicking on Comment icon: 

EMAIL = <%= current_user.email %> 

Then, here is the result of using the Comment icon while the cursor is on that line: 

<%#*EMAIL = <%= current_user.email %>%> 


Well, apparently, that is formatted badly, becuase it adds red squigly lines and an exclaimation point!. 


I found that I could add some spaces in certain places to make it happy, but I'm not sure what the correct layout should actually be: 

1. Adding a space after the # sign seems to make it happy. 
or 
2. Adding a space before the last % sign seems to make it happy.
Comment 1 mattslay 2010-06-23 23:32:36 UTC
Using: Rails 3 beta 4, Ruby 1.9.2-head