summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 03:27:06 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 03:27:06 +0100
commit1e66d13121efecb948a1684889cbb399e4c1ff3e (patch)
tree75b072d9ec27bda5d745273c573440cb749b3d26
parent1b140ba2183f6eabe086547834d243f71fe03134 (diff)
downloadcoderay-1e66d13121efecb948a1684889cbb399e4c1ff3e.tar.gz
fix heredoc indentation
-rw-r--r--test/functional/basic.rb8
-rw-r--r--test/functional/for_redcloth.rb8
-rw-r--r--test/unit/comment_filter.rb2
3 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/basic.rb b/test/functional/basic.rb
index 752d4ba..059d56c 100644
--- a/test/functional/basic.rb
+++ b/test/functional/basic.rb
@@ -97,7 +97,7 @@ class BasicTest < Test::Unit::TestCase
code
more code
- EXPECTED
+ EXPECTED
#!/usr/bin/env ruby
=begin
A multi-line comment.
@@ -105,7 +105,7 @@ A multi-line comment.
code
# A single-line comment.
more code # and another comment, in-line.
- INPUT
+ INPUT
end
def test_lines_of_code
@@ -117,7 +117,7 @@ A multi-line comment.
code
# A single-line comment.
more code # and another comment, in-line.
- INPUT
+ INPUT
rHTML = <<-RHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -138,7 +138,7 @@ more code # and another comment, in-line.
</body>
</html>
- RHTML
+ RHTML
assert_equal 0, CodeRay.scan(rHTML, :html).lines_of_code
assert_equal 0, CodeRay.scan(rHTML, :php).lines_of_code
assert_equal 0, CodeRay.scan(rHTML, :yaml).lines_of_code
diff --git a/test/functional/for_redcloth.rb b/test/functional/for_redcloth.rb
index 9fd244e..d2b53f8 100644
--- a/test/functional/for_redcloth.rb
+++ b/test/functional/for_redcloth.rb
@@ -22,7 +22,7 @@ class BasicTest < Test::Unit::TestCase
<div lang="ruby" class="CodeRay">
<div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, World!</span><span style="color:#710">&quot;</span></span></pre></div>
</div>
- BLOCKCODE
+ BLOCKCODE
RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html
end
@@ -32,7 +32,7 @@ class BasicTest < Test::Unit::TestCase
RedCloth.new('@puts "Hello, World!"@').to_html
assert_equal <<-BLOCKCODE.chomp,
<pre><code>puts \"Hello, World!\"</code></pre>
- BLOCKCODE
+ BLOCKCODE
RedCloth.new('bc. puts "Hello, World!"').to_html
end
@@ -40,7 +40,7 @@ class BasicTest < Test::Unit::TestCase
require 'coderay/for_redcloth'
assert_equal <<-BLOCKCODE.chomp,
<pre style=\"color: red;\"><code style=\"color: red;\">puts \"Hello, World!\"</code></pre>
- BLOCKCODE
+ BLOCKCODE
RedCloth.new('bc{color: red}. puts "Hello, World!"').to_html
end
@@ -52,7 +52,7 @@ class BasicTest < Test::Unit::TestCase
<div lang="ruby" class="CodeRay">
<div class="code"><pre>&amp;</pre></div>
</div>
- BLOCKCODE
+ BLOCKCODE
RedCloth.new('bc[ruby]. &').to_html
end
diff --git a/test/unit/comment_filter.rb b/test/unit/comment_filter.rb
index e255d07..c8147e9 100644
--- a/test/unit/comment_filter.rb
+++ b/test/unit/comment_filter.rb
@@ -47,7 +47,7 @@ class Myclass():
def myfunction():
-PYTHON_FILTERED
+ PYTHON_FILTERED
end
end \ No newline at end of file