Skip to content

Option to wrap edge (choice label) text over multiple lines (or clip it with ellipsis) #74

@hsandt

Description

@hsandt

I noticed that long choice labels are displayed on one line and tend to overlap over choices, making text unreadable:

renpy-graphviz

I can -hide-edges but the choices are still useful.

An option to wrap the choice labels over multiple lines would make this more readable (either by max character count, or some clever auto-detect of space available between nodes.

According to https://stackoverflow.com/questions/5277864/text-wrapping-with-dot-graphviz there is no way to auto-wrap text though, only dot2tex may be able to do so but the given example has text inside a bubble, not on an edge. However it may be possible to add a manual \n line break (in this case only the max character count solution seems doable).

Alternatively, long text (again, compared to max character count) could be clipped with an ellipsis .... I only need the choice label beginning to understand what the choice is about (obviously this may not work with some choices that start with the same text, but then the name of the target node will complete missing information).

Btw, thanks for making this, I was just looking for a program like this, I have written myself some dotgraph generator to detect C++ include deps (well, that already existed but I needed it to detect particular includes only) and I didn't like writing another one for Renpy!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions