Skip to content

Commit d7e9a7b

Browse files
committed
Fixes in diagnostics to str conversion
1 parent a05f19d commit d7e9a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

df_translation_toolkit/validation/validation_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class ProblemInfo:
4040
problems: list[ValidationProblem] = field(default_factory=list)
4141

4242
def __str__(self) -> str:
43-
problems_text = "\n".join(str(problem) for problem in self.problems)
44-
return f"Problematic tag pair: {self.original!r}, {self.translation!r}\nProblems:\n{problems_text}"
43+
problems_text = "\n".join(f" {problem}" for problem in self.problems)
44+
return f"Problematic pair: {self.original!r}, {self.translation!r}\nProblems:\n{problems_text}"
4545

4646
def contains_problems(self) -> bool:
4747
return bool(self.problems)

0 commit comments

Comments
 (0)