diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb index 9132d94c..5a374e32 100644 --- a/lib/coderay/encoders/html/output.rb +++ b/lib/coderay/encoders/html/output.rb @@ -125,7 +125,7 @@ def apply target, replacement TABLE = Template.new <<-TABLE - +
<%LINE_NUMBERS%>
<%CONTENT%>
<%CONTENT%>
TABLE diff --git a/test/executable/suite.rb b/test/executable/suite.rb index f3495d61..3f8d6c0d 100644 --- a/test/executable/suite.rb +++ b/test/executable/suite.rb @@ -114,7 +114,7 @@ def coderay args, options = {} source = File.read source_file - pre = %r{
(.*?)
}m + pre = %r{
(.*?)<\/pre>}m
     tag = /<[^>]*>/
     
     should 'not throw an error' do
@@ -169,7 +169,7 @@ def coderay args, options = {}
     
     source = File.read source_file
     
-    pre = %r{
(.*?)
}m + pre = %r{
(.*?)
}m tag_class = /]*>/ should 'respect the file extension and highlight the input as Python' do @@ -184,7 +184,7 @@ def coderay args, options = {} source = File.read source_file - pre = %r{
(.*?)
}m + pre = %r{
(.*?)
}m tag_class = /]*>/ should 'ignore the file extension and highlight the input as Ruby' do diff --git a/test/functional/examples.rb b/test/functional/examples.rb index ff64af31..d99b47e3 100755 --- a/test/functional/examples.rb +++ b/test/functional/examples.rb @@ -26,7 +26,7 @@ def test_examples 2 3
-
5.times do
+  
5.times do
   puts 'Hello, world!'
 end
@@ -40,7 +40,7 @@ def test_examples - +
 
puts "Hello, world!"
puts "Hello, world!"