-
Notifications
You must be signed in to change notification settings - Fork 39
visualize_urls.py generates malformed content #16
Copy link
Copy link
Open
Labels
Description
dot will trip on the generated output
digraph sitemap {
graph [fontcolor=black fontname=Helvetica fontsize=18 label="www.example.org"]
node [color=black fillcolor="#dbdddd" fontcolor=black fontname=Helvetica fontsize=14 style=filled]
edge [arrowhead=open color=black fontcolor=black fontname=Helvetica fontsize=12]
rankdir=LRsize="40" node [shape=rectangle]
"www.example.org" [label="www.example.org (495)"]
with this error:
graphviz.backend.execute.CalledProcessError: Command '[PosixPath('dot'), '-Kdot', '-Tpdf', '-O', 'sitemap_graph_5_layer']' returned non-zero exit status 1. [stderr: b"Error: sitemap_graph_5_layer: syntax error in line 5 near '='\n"]
After making 2 lines out of line 5 and adding a space ,dot will accept the data:
rankdir=LR size="40"
node [shape=rectangle]
Ubuntu, python 3.10.6, graphviz 2.43.0
Reactions are currently unavailable