From d9b8b88dd73a1251283326c95f6b53cc99917849 Mon Sep 17 00:00:00 2001 From: gedi Date: Sat, 27 Oct 2018 19:09:36 +0300 Subject: [PATCH] closes #145 --- fmt_pretty.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fmt_pretty.go b/fmt_pretty.go index d304769..c4a888e 100644 --- a/fmt_pretty.go +++ b/fmt_pretty.go @@ -113,6 +113,8 @@ func (f *pretty) printUndefinedScenario(sc *gherkin.Scenario) { f.printStep(step, nil, colors.Cyan) } } + + f.commentPos = f.longestStep(sc.Steps, f.length(sc)) text := s(f.indent) + whiteb(f.scenario.Keyword+": ") + sc.Name text += s(f.commentPos-f.length(f.scenario)+1) + f.line(sc.Location) fmt.Fprintln(f.out, "\n"+text)