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 - Toggle comment does not work perfectly in *.erb files
Summary: Toggle comment does not work perfectly in *.erb files
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 14:53 UTC by Tomas Danek
Modified: 2011-01-28 20:13 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 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.