We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d73ba2 commit 49f1b33Copy full SHA for 49f1b33
test/test.rb
@@ -123,19 +123,22 @@ def self.quux
123
124
it "should escape all backslashes and apostrophes in text" do
125
list = ['&\'<>"2']
126
- check_output(<<END1, <<END2, <<END3){}
+ check_output(<<END1.chomp, <<END2, <<END3){}
127
<table>
128
<tbody>' ' \\ \\
129
<% i = 0
130
list.each_with_index do |item, i| %>
131
<tr>
132
- <td><%= i+1 %></td>
+ <td><%= i+1 -%>
133
+</td>
134
<td><%== item %></td>
135
</tr>
136
<% end %>
137
</tbody>
138
</table>
139
<%== i+1 %>
140
+<%
141
+%>
142
END1
143
_buf = ::String.new; _buf << '<table>
144
<tbody>\\' \\' \\\\ \\\\
0 commit comments