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 - Bug when commenting out a line in an .erb file (NetBeans 6.9)
Summary: Bug when commenting out a line in an .erb file (NetBeans 6.9)
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 23:23 UTC by mattslay
Modified: 2011-01-28 20:14 UTC (History)
0 users

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 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