lib/rouge/formatters/html.rb in rouge-1.2.0 vs lib/rouge/formatters/html.rb in rouge-1.3.0
- old
+ new
@@ -67,13 +67,13 @@
numbers = num_lines.times.map do |x|
%<<pre class="lineno">#{x+1}</pre>>
end.join
yield "<div class=#{@css_class.inspect}>" if @wrap
- yield "<table><tbody><tr>"
+ yield '<table style="border-spacing: 0"><tbody><tr>'
# the "gl" class applies the style for Generic.Lineno
- yield '<td class="gutter gl">'
+ yield '<td class="gutter gl" style="text-align: right">'
yield numbers
yield '</td>'
yield '<td class="code">'
yield '<pre>'