Skip to content

Commit

Permalink
Fix multiline indentation and printing in Java. Also fix some off col…
Browse files Browse the repository at this point in the history
…ours.
  • Loading branch information
aslakhellesoy committed Dec 5, 2010
1 parent da50e80 commit f89bb8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion java/src/main/java/gherkin/formatter/PrettyFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void examples(Examples examples) {
out.print(": ");
out.print(examples.getName());
out.println();
printDescription(examples.getDescription(), " ", true);
printDescription(examples.getDescription(), " ", true);
table(examples.getRows());
}

Expand Down
6 changes: 3 additions & 3 deletions lib/gherkin/formatter/colors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module Formatter
# <tt>undefined</tt>:: defaults to <tt>yellow</tt>
# <tt>pending</tt>:: defaults to <tt>yellow</tt>
# <tt>pending_arg</tt>:: defaults to <tt>yellow,bold</tt>
# <tt>executing</tt>:: defaults to <tt>magenta</tt>
# <tt>executing_arg</tt>:: defaults to <tt>magenta,bold</tt>
# <tt>executing</tt>:: defaults to <tt>grey</tt>
# <tt>executing_arg</tt>:: defaults to <tt>grey,bold</tt>
# <tt>failed</tt>:: defaults to <tt>red</tt>
# <tt>failed_arg</tt>:: defaults to <tt>red,bold</tt>
# <tt>passed</tt>:: defaults to <tt>green</tt>
Expand Down Expand Up @@ -49,7 +49,7 @@ module Colors
end.merge({
'undefined' => 'yellow',
'pending' => 'yellow',
'executing' => 'magenta',
'executing' => 'grey',
'failed' => 'red',
'passed' => 'green',
'outline' => 'cyan',
Expand Down
2 changes: 1 addition & 1 deletion spec/gherkin/formatter/pretty_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def assert_pretty(input, expected_output=input)
)
else
assert_io(
" #{grey('Given ')}#{grey('I have ')}#{grey(bold('999'))}#{magenta(' cukes in my belly')}\n" +
" #{grey('Given ')}#{grey('I have ')}#{grey(bold('999'))}#{grey(' cukes in my belly')}\n" +
"\033[1A #{green('Given ')}#{green('I have ')}#{green(bold('999'))}#{green(' cukes in my belly')}\n"
)
end
Expand Down

0 comments on commit f89bb8b

Please sign in to comment.