Comments (3)
Agree.
from graphviz-rust.
from graphviz-rust.
Since we don't parse the incoming string in the macros, there is no way to distinguish whether the string should be with quotes or not.
But the macro provides the way to wrap the string with quotes by using esc prefix, namely:
let graph = {
use graphviz_rust::dot_generator::*;
graph!(strict di id!(esc "h[t]"))
};
let out = graph.print( PrinterContext::default().with_indent_step(2));
And in the case above, since we know the name includes the forbidden symbols, we can handle it with the escaped string.
from graphviz-rust.
Related Issues (19)
- Inability to use Attribute builder with escaped strings
- Error when parsing comment after final closing bracket HOT 1
- Can’t handle escStrings and attribute names starting with “_” (e.g. the `GraphAttributes` in a simple graph’s `dot`/`xdot` output) HOT 1
- Implement `Into<CommandArg>` for `Layout`, `Format`, … HOT 2
- Release new version for into-attr-derive HOT 1
- Add license entry to Cargo.toml HOT 1
- Change the way of parsing GraphAttributes
- Dot parser is forbidding characters it should not within the "double quoted string" variant of IDs. HOT 2
- Node ports starting with a "compass letter" breaks parsing HOT 2
- png parsing HOT 2
- `NodeId` does not derive `Eq` HOT 2
- DotPrinter is adding an unneeded space after edges and before the semi-colon when there are no edge attributes.
- DotPrinter is adding an extra level of indentation on all statements
- Add support for printing nodes with multiple attributes on separate lines. HOT 1
- Graph should be visible HOT 7
- dot pest update HOT 1
- Tests failing on macOS HOT 6
- Add Clone/Copy impls for enum cmd::Format, export a version of exec that takes a rendered graph, add more descriptive error messages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphviz-rust.