{"action":"created","issue":{"url":"https://api.github.com/repos/monora/rgl/issues/31","repository_url":"https://api.github.com/repos/monora/rgl","labels_url":"https://api.github.com/repos/monora/rgl/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/monora/rgl/issues/31/comments","events_url":"https://api.github.com/repos/monora/rgl/issues/31/events","html_url":"https://github.com/monora/rgl/issues/31","id":133810338,"number":31,"title":"DOT keywords as labels cause DOT syntax errors","user":{"login":"kjhenner","id":4713383,"avatar_url":"https://avatars.githubusercontent.com/u/4713383?v=3","gravatar_id":"","url":"https://api.github.com/users/kjhenner","html_url":"https://github.com/kjhenner","followers_url":"https://api.github.com/users/kjhenner/followers","following_url":"https://api.github.com/users/kjhenner/following{/other_user}","gists_url":"https://api.github.com/users/kjhenner/gists{/gist_id}","starred_url":"https://api.github.com/users/kjhenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjhenner/subscriptions","organizations_url":"https://api.github.com/users/kjhenner/orgs","repos_url":"https://api.github.com/users/kjhenner/repos","events_url":"https://api.github.com/users/kjhenner/events{/privacy}","received_events_url":"https://api.github.com/users/kjhenner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T20:34:45Z","updated_at":"2016-02-20T11:41:37Z","closed_at":null,"body":"The keywords node, edge, graph, digraph, subgraph, and strict (case insensitive) cause syntax errors in the DOT format when they're used as labels.\r\n\r\nThe DOT language documentation notes that: 'There is no semantic difference between abc_2 and \"abc_2\", or between 2.34 and \"2.34\". Obviously, to use a keyword as an ID, it must be quoted.' (http://www.graphviz.org/doc/info/lang.html) As far as I can tell, the same applies to labels. If this is the case, it seems that it would be best to double-quote all labels generated by the to_dot_graph function and escape any double-quotes in the labels themselves.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/monora/rgl/issues/comments/186576905","html_url":"https://github.com/monora/rgl/issues/31#issuecomment-186576905","issue_url":"https://api.github.com/repos/monora/rgl/issues/31","id":186576905,"user":{"login":"monora","id":735220,"avatar_url":"https://avatars.githubusercontent.com/u/735220?v=3","gravatar_id":"","url":"https://api.github.com/users/monora","html_url":"https://github.com/monora","followers_url":"https://api.github.com/users/monora/followers","following_url":"https://api.github.com/users/monora/following{/other_user}","gists_url":"https://api.github.com/users/monora/gists{/gist_id}","starred_url":"https://api.github.com/users/monora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monora/subscriptions","organizations_url":"https://api.github.com/users/monora/orgs","repos_url":"https://api.github.com/users/monora/repos","events_url":"https://api.github.com/users/monora/events{/privacy}","received_events_url":"https://api.github.com/users/monora/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T11:41:37Z","updated_at":"2016-02-20T11:41:37Z","body":"I am not sure, if I understand the problem correctly. Can you provide a test case or example graph, which causes problems when exported to dot. Which RGL version did you use? With commits fa759290 and 33206f we changed exporting to dot."}}