-
Notifications
You must be signed in to change notification settings - Fork 14
fix: Escape html-like labels in DotRenderer #2383
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2383 +/- ##
=======================================
Coverage 82.16% 82.17%
=======================================
Files 244 244
Lines 44759 44762 +3
Branches 40541 40541
=======================================
+ Hits 36775 36781 +6
+ Misses 5984 5981 -3
Partials 2000 2000
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
We should probably do the same for edge labels as well?
fixes #2286  It looks like there's a graphviz bug that causes nodes to be too narrow when using the monospace font. I'll open a separate issue to make a workaround for that.
🤖 I have created a release *beep* *boop* --- ## [0.12.3](hugr-py-v0.12.2...hugr-py-v0.12.3) (2025-07-03) ### Features * add toposort to HUGR-py ([#2367](#2367)) ([ba8988e](ba8988e)) * **core, llvm:** add array unpack operations ([#2339](#2339)) ([74b25aa](74b25aa)), closes [#1947](#1947) * **py:** Helper methods to get the neighbours of a node ([#2370](#2370)) ([1ed6440](1ed6440)) ### Bug Fixes * Escape html-like labels in DotRenderer ([#2383](#2383)) ([c7a43a6](c7a43a6)) * Fixed invalid extension name in test. ([#2319](#2319)) ([fbe1d9c](fbe1d9c)) * **py:** correct ConstString JSON encoding ([#2325](#2325)) ([325168b](325168b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [0.12.3](hugr-py-v0.12.2...hugr-py-v0.12.3) (2025-07-03) ### Features * add toposort to HUGR-py ([#2367](#2367)) ([ba8988e](ba8988e)) * **core, llvm:** add array unpack operations ([#2339](#2339)) ([74b25aa](74b25aa)), closes [#1947](#1947) * **py:** Helper methods to get the neighbours of a node ([#2370](#2370)) ([1ed6440](1ed6440)) ### Bug Fixes * Escape html-like labels in DotRenderer ([#2383](#2383)) ([c7a43a6](c7a43a6)) * Fixed invalid extension name in test. ([#2319](#2319)) ([fbe1d9c](fbe1d9c)) * **py:** correct ConstString JSON encoding ([#2325](#2325)) ([325168b](325168b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
fixes #2286
It looks like there's a graphviz bug that causes nodes to be too narrow when using the monospace font. I'll open a separate issue to make a workaround for that. (#2385)