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 171407

Summary: Toggle comment does not work perfectly in *.erb files
Product: ruby Reporter: Tomas Danek <musilt2>
Component: RHTMLAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Danek 2009-09-03 14:53:37 UTC
Product Version: NetBeans IDE Dev (Build 090903)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)
Userdir: /tmp/ud1
----------------------

if you have in you erb file line line this:

<td><%= image_tag "logo.jpg" , :style => "border: 2px solid #fff; margin-left: 10px" %></td>

you select it, toggle comment, it gets commented out like this:

<%#*<td><%= image_tag "logo.jpg" , :style => "border: 2px solid #fff; margin-left: 10px" %></td>%>

which leads that page will render "%>" chars.
Comment 1 Erno Mononen 2009-09-08 12:05:07 UTC
Reproduced, targetting 6.8.