Skip to content
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

Single quotes erroneously replaced with escaped double-quotes #433

Open
coolbutuseless opened this issue May 20, 2021 · 0 comments
Open

Comments

@coolbutuseless
Copy link

According to the Dot language spec () only the double-quote character should be escaped i.e. a literal " should be included in a dot file as \"

In grViz() however it appears that a single-quote (') is escaped to be \" :

diagram <- gsub(x = diagram, "'", "\"")

This changes any single quotes (for example apostrophes in words) with a double quote character.

E.g. A node label they'll is erroneously converted into the dot output they"ll

Posslbe fix: Change the gsub pattern to be '"' instead of "'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant