Skip to content

Commit 579effb

Browse files
author
Cody D'Ambrosio
committed
remove indent variable
1 parent 88cb8b8 commit 579effb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/tap/line.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,10 @@ def __str__(self):
113113
diagnostics = "\n" + self.diagnostics.rstrip()
114114
yaml_block = ""
115115
if self._yaml_block is not None:
116-
indent = " "
117116
indented_yaml_block = "\n".join(
118-
f"{indent}{line}" for line in self._yaml_block.splitlines()
117+
f" {line}" for line in self._yaml_block.splitlines()
119118
)
120-
yaml_block = f"\n{indent}---\n{indented_yaml_block}\n{indent}..."
119+
yaml_block = f"\n ---\n{indented_yaml_block}\n ..."
121120
return (
122121
f"{is_not}ok {self.number} {self.description}{directive}"
123122
f"{diagnostics}{yaml_block}"

0 commit comments

Comments
 (0)