Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e66d13

Browse files
committed
fix heredoc indentation
1 parent1b140ba commit1e66d13

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎test/functional/basic.rb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ def test_comment_filter
9797
code
9898
9999
more code
100-
EXPECTED
100+
EXPECTED
101101
#!/usr/bin/env ruby
102102
=begin
103103
A multi-line comment.
104104
=end
105105
code
106106
# A single-line comment.
107107
more code # and another comment, in-line.
108-
INPUT
108+
INPUT
109109
end
110110

111111
deftest_lines_of_code
@@ -117,7 +117,7 @@ def test_lines_of_code
117117
code
118118
# A single-line comment.
119119
more code # and another comment, in-line.
120-
INPUT
120+
INPUT
121121
rHTML=<<-RHTML
122122
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
123123
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -138,7 +138,7 @@ def test_lines_of_code
138138
139139
</body>
140140
</html>
141-
RHTML
141+
RHTML
142142
assert_equal0,CodeRay.scan(rHTML,:html).lines_of_code
143143
assert_equal0,CodeRay.scan(rHTML,:php).lines_of_code
144144
assert_equal0,CodeRay.scan(rHTML,:yaml).lines_of_code

‎test/functional/for_redcloth.rb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_for_redcloth
2222
<div lang="ruby" class="CodeRay">
2323
<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>
2424
</div>
25-
BLOCKCODE
25+
BLOCKCODE
2626
RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html
2727
end
2828

@@ -32,15 +32,15 @@ def test_for_redcloth_no_lang
3232
RedCloth.new('@puts "Hello, World!"@').to_html
3333
assert_equal<<-BLOCKCODE.chomp,
3434
<pre><code>puts\"Hello, World!\"</code></pre>
35-
BLOCKCODE
35+
BLOCKCODE
3636
RedCloth.new('bc. puts "Hello, World!"').to_html
3737
end
3838

3939
deftest_for_redcloth_style
4040
require'coderay/for_redcloth'
4141
assert_equal<<-BLOCKCODE.chomp,
4242
<pre style=\"color: red;\"><code style=\"color: red;\">puts\"Hello, World!\"</code></pre>
43-
BLOCKCODE
43+
BLOCKCODE
4444
RedCloth.new('bc{color: red}. puts "Hello, World!"').to_html
4545
end
4646

@@ -52,7 +52,7 @@ def test_for_redcloth_escapes
5252
<div lang="ruby" class="CodeRay">
5353
<div class="code"><pre>&amp;</pre></div>
5454
</div>
55-
BLOCKCODE
55+
BLOCKCODE
5656
RedCloth.new('bc[ruby]. &').to_html
5757
end
5858

‎test/unit/comment_filter.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def mymethod(self):
4747
def myfunction():
4848
4949
50-
PYTHON_FILTERED
50+
PYTHON_FILTERED
5151
end
5252

5353
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp