Skip to content

Commit

Permalink
Whitespace bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jan 25, 2009
1 parent 637b82a commit 3673a54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 15 additions & 17 deletions lib/cucumber/parser/feature.rb
Expand Up @@ -892,9 +892,17 @@ def name
elements[3]
end

def eol
elements[4]
end

def table
elements[5]
end

def white
elements[6]
end
end

module Examples1
Expand Down Expand Up @@ -947,25 +955,15 @@ def _nt_examples
end
s0 << r6
if r6
s8, i8 = [], index
loop do
r9 = _nt_eol
if r9
s8 << r9
else
break
end
end
if s8.empty?
self.index = i8
r8 = nil
else
r8 = SyntaxNode.new(input, i8...index, s8)
end
r8 = _nt_eol
s0 << r8
if r8
r10 = _nt_table
s0 << r10
r9 = _nt_table
s0 << r9
if r9
r10 = _nt_white
s0 << r10
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/parser/feature.tt
Expand Up @@ -108,7 +108,7 @@ module Cucumber
end

rule examples
space* examples_keyword space* name:line_to_eol? eol+ table {
space* examples_keyword space* name:line_to_eol? eol table white {
def build
[examples_keyword.line, examples_keyword.text_value, name.text_value, table.raw]
end
Expand Down

0 comments on commit 3673a54

Please sign in to comment.