Project

General

Profile

Actions

Bug #1559

closed

ERB single line comment does not work

Added by jyzhang (James Zhang) almost 15 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0]
Backport:
[ruby-core:23682]

Description

=begin
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.9.1 jyzhang (James Zhang), 06/03/2009 01:19 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #3146: ERB single line comment does not workRejectedseki (Masatoshi Seki)04/14/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0