Skip to content

Commit f59ee85

Browse files
author
alexandre.monterroso
committed
Add some indentation
1 parent b3e19ba commit f59ee85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/cucumber/runtime/formatter/PrettyFormatter.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
final class PrettyFormatter implements EventListener, ColorAware {
3535
private static final String SCENARIO_INDENT = " ";
3636
private static final String STEP_INDENT = " ";
37+
private static final String STEP_SCENARIO_INDENT = " ";
3738
private static final String EXAMPLES_INDENT = " ";
3839
private final TestSourcesModel testSources = new TestSourcesModel();
3940
private final NiceAppendable out;
@@ -150,7 +151,9 @@ private void handleTestStepFinished(TestStepFinished event) {
150151
}
151152

152153
private void handleWrite(WriteEvent event) {
153-
out.println(event.text);
154+
out.println();
155+
out.println(STEP_SCENARIO_INDENT + event.text);
156+
out.println();
154157
}
155158

156159
private void finishReport() {

0 commit comments

Comments
 (0)