From 0f520fdc922315dcd65dd09cc7c294555b4a5431 Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Tue, 12 Mar 2024 13:44:21 -0500 Subject: [PATCH] Replace Tabs with Spaces This matches a lot of the markdown formatters. --- paracelsus/transformers/mermaid.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paracelsus/transformers/mermaid.py b/paracelsus/transformers/mermaid.py index a143aa8..14b07cd 100644 --- a/paracelsus/transformers/mermaid.py +++ b/paracelsus/transformers/mermaid.py @@ -11,12 +11,12 @@ def __init__(self, metaclass: MetaData) -> None: self.metadata = metaclass def _table(self, table: Table) -> str: - output = f"\t{table.name}" + output = f" {table.name}" output += " {\n" columns = sorted(table.columns, key=utils.column_sort_key) for column in columns: output += self._column(column) - output += "\t}\n\n" + output += " }\n\n" return output def _column(self, column: Column) -> str: @@ -44,7 +44,7 @@ def _column(self, column: Column) -> str: if len(options) > 0: column_str += f' "{",".join(options)}"' - return f"\t\t{column_str}\n" + return f" {column_str}\n" def _relationships(self, column: Column) -> str: output = "" @@ -69,7 +69,7 @@ def _relationships(self, column: Column) -> str: else: left_operand = "}o" - output += f"\t{left_table} {left_operand}--{right_operand} {right_table} : {column_name}\n" + output += f" {left_table} {left_operand}--{right_operand} {right_table} : {column_name}\n" return output def __str__(self) -> str: