Project

General

Profile

Actions

Bug #1868

closed

ERB single line comment does not work

Added by jfahrenkrug (Johannes Fahrenkrug) over 15 years ago. Updated over 7 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
Backport:
[ruby-core:24715]

Description

=begin
Hi,

I just ran into this and found that a 1.9 bug for this is open already. But this issue also applies to 1.8.7. So I'm duplicating the description from here: http://redmine.ruby-lang.org/issues/show/1559

In erb you're supposed to be able to do single line comments:

<% # this is a comment %>

However, this does not work in ruby 1.9.1.

Temporary work around is to put the '%>' on a newline:

<% # this comment works in 1.9.1
%>

Please see attached unit test.
=end


Files

test_erb.rb (313 Bytes) test_erb.rb test that passes in Ruby 1.8.6 but fails in Ruby 1.8.7 jfahrenkrug (Johannes Fahrenkrug), 08/03/2009 08:32 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #14243: Comments inside ERB tags brokenClosedk0kubun (Takashi Kokubun)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0