lib/rouge/formatters/html_table.rb in rouge-2.0.2 vs lib/rouge/formatters/html_table.rb in rouge-2.0.3
- old
+ new
@@ -39,19 +39,19 @@
# generate a string of newline-separated line numbers for the gutter>
formatted_line_numbers = (@start_line..num_lines+@start_line-1).map do |i|
sprintf("#{@line_format}", i) << "\n"
end.join('')
- numbers = %<<pre class="lineno">#{formatted_line_numbers}</pre>>
+ numbers = %(<pre class="lineno">#{formatted_line_numbers}</pre>)
- yield %<<table class="#@table_class"><tbody><tr>>
+ yield %(<table class="#@table_class"><tbody><tr>)
# the "gl" class applies the style for Generic.Lineno
- yield %<<td class="#@gutter_class gl">>
+ yield %(<td class="#@gutter_class gl">)
yield numbers
yield '</td>'
- yield %<<td class="#@code_class"><pre>>
+ yield %(<td class="#@code_class"><pre>)
yield formatted
yield '</pre></td>'
yield "</tr></tbody></table>\n"
end