Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove erroneous extra padding added to source indent
  • Loading branch information
Joseph Wilk committed Apr 23, 2009
1 parent 28bfa6b commit c94d7d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions features/multiline_names.feature
Expand Up @@ -9,20 +9,20 @@ Feature: Multiline description names
"""
Feature: multiline
Background: I'm a multiline name # features/multiline_name.feature:3
Background: I'm a multiline name # features/multiline_name.feature:3
which goes on and on and on for three lines
yawn
Given passing without a table # features/step_definitions/sample_steps.rb:12
Given passing without a table # features/step_definitions/sample_steps.rb:12
Scenario: I'm a multiline name # features/multiline_name.feature:8
Scenario: I'm a multiline name # features/multiline_name.feature:8
which goes on and on and on for three lines
yawn
Given passing without a table # features/step_definitions/sample_steps.rb:12
Given passing without a table # features/step_definitions/sample_steps.rb:12
Scenario Outline: I'm a multiline name # features/multiline_name.feature:13
Scenario Outline: I'm a multiline name # features/multiline_name.feature:13
which goes on and on and on for three lines
yawn
Given <state> without a table # features/step_definitions/sample_steps.rb:12
Given <state> without a table # features/step_definitions/sample_steps.rb:12
Examples:
| state |
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/ast/feature_element.rb
Expand Up @@ -23,7 +23,7 @@ def name_line_lengths
[@keyword.jlength]
else
@name.split("\n").enum_for(:each_with_index).map do |line, line_number|
line_number == 0 ? @keyword.jlength + line.jlength : line.jlength + Ast::Step::INDENT
line_number == 0 ? @keyword.jlength + line.jlength : line.jlength + Ast::Step::INDENT - 1 # We -1 as names which are not keyword lines are missing a space between keyword and name
end
end
end
Expand Down

0 comments on commit c94d7d7

Please sign in to comment.