fuelen / ecto_erd

A mix task for generating Entity Relationship Diagram from Ecto schemas available in your project.
Apache License 2.0
216 stars 15 forks source link

Is it possible to pretty-print the Graphviz / dot output (including HTML inside)? #5

Closed nivertech closed 2 years ago

nivertech commented 2 years ago

Usecase: I have a Github Action which runs ecto_erd on each merged PR. That way I can see clear diffs in ecto schemas and whether this PR changed schemas at all. It's easy to pretty-print Graphviz DSL, but unfortunatelly the HTML inside is still one big unformulated blob.

Two ways to pretty-print Graphviz:

fuelen commented 2 years ago

hey @nivertech I'm afraid that formatting HTML is not really possible, as HTML engine in Graphviz is sensitive to multiple spaces