-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphviz draw tooltip with special characters #750
Comments
I took a quick look at this, the error is we're not wrapping graph {
0 [label="the
label", tooltip=the
tooltip];
1 [label="the
label", tooltip=the
tooltip];
0 -- 1 ;
} The simple fix is to update: https://github.com/Qiskit/rustworkx/blob/main/src/dot_utils.rs#L89 to be |
For reference, the tooltip documentation https://graphviz.org/docs/attrs/tooltip/ |
Heyy I saw this issue at the unitaryhacks . |
This issue is participating on UnitaryHack 2024, between May 29 and June 12, 2024. Because the nature of the event, there is no need to request to be assigned: just go ahead and PR your fix. The first/best PR can get the bounty (or it could be shared if they complement each other). |
@mtreinish Got it , thank you, the PR is open , Would love to know your thoughts on if the fix is what you are looking for |
Information
What is the current behavior?
Adding a
\n
or:
character to the tooltip throws this error:What is the expected behavior?
I would like the tooltip to support special characters such as
\n
and:
, like label does.In http://magjac.com/graphviz-visual-editor/, I'm allowed to do that with:
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: