Skip to content

Commit

Permalink
Merge pull request #4 from tedivm/replace_tabs_with_spaces
Browse files Browse the repository at this point in the history
Replace Tabs with Spaces
  • Loading branch information
tedivm authored Mar 12, 2024
2 parents c8c8a95 + 0f520fd commit 3fa88e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions paracelsus/transformers/mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 = ""
Expand All @@ -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:
Expand Down

0 comments on commit 3fa88e2

Please sign in to comment.