Skip to content

visualize_urls.py generates malformed content  #16

@Mtillmann

Description

@Mtillmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions