Underscores stripped from clustered package names
Closed this issue · 4 comments
Is there any particular reason why the line of code referenced below strips underscores from clustered package names? It makes the nodes harder to read for me.
pydeps/pydeps/render_context.py
Line 295 in 2c0b958
Ah, an especially well-documented function :-D
If I remember correctly, it is to satisfy the naming constraints on subgraph in graphviz (https://github.com/thebjorn/pydeps/blame/2c0b958b2f4dd6e00f59b37e63c218d53e6e1773/pydeps/render_context.py#L237), but it is probably a bug that the next line uses the cluster id for the label text...
Simply commenting out the .replace('_', '')
-part of the line solved the problem for me. There seemed to be no problem with cluster-ID constraints. Maybe something changed in Graphviz?
Any progress on this one ? Any chance this gets fixed in some future release ?
Check out v1.12.4 available on PyPI.