diff --git a/markdown_utils/MarkdownUtils.py b/markdown_utils/MarkdownUtils.py index 110ff0d..8b28d5b 100644 --- a/markdown_utils/MarkdownUtils.py +++ b/markdown_utils/MarkdownUtils.py @@ -18,10 +18,10 @@ class MarkdownTable: self.rows.append(row_data) def __str__(self): - table = "| " + table = "|" for header in self.headers: - table += "{} | ".format(header) + table += " {} |".format(header) table += "\n" @@ -30,6 +30,6 @@ class MarkdownTable: for row in self.rows: table += "\n" - table += " | ".join(row) + table += " | ".join(map(str, row)) return table