From a930976427a3dc0f37c2a9296e1d8e44d4570515 Mon Sep 17 00:00:00 2001 From: Daan Sieben Date: Thu, 24 Aug 2023 13:58:08 +0200 Subject: [PATCH] Fix missing scenario, rule and feature headers --- src/writer/basic.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/writer/basic.rs b/src/writer/basic.rs index 3369a5ce..570fee97 100644 --- a/src/writer/basic.rs +++ b/src/writer/basic.rs @@ -281,7 +281,6 @@ impl Basic { feature: &gherkin::Feature, ) -> io::Result<()> { let out = format!("{}: {}", feature.keyword, feature.name); - self.lines_to_clear += self.styles.lines_count(&out); self.output.write_line(&self.styles.ok(out)) } @@ -327,7 +326,6 @@ impl Basic { rule.name, indent = " ".repeat(self.indent) ); - self.lines_to_clear += self.styles.lines_count(&out); self.indent += 2; self.output.write_line(&self.styles.ok(out)) } @@ -455,7 +453,6 @@ impl Basic { retries.current, retries.left + retries.current, ); - self.lines_to_clear += self.styles.lines_count(&out); self.output.write_line(&self.styles.retry(out)) } else { let out = format!( @@ -464,7 +461,6 @@ impl Basic { scenario.keyword, scenario.name, ); - self.lines_to_clear += self.styles.lines_count(&out); self.output.write_line(&self.styles.ok(out)) } }