Skip to content
Snippets Groups Projects
Commit 0859ed44 authored by Jens Georg's avatar Jens Georg
Browse files

graphs: Also escape "-" for node names

parent 9839b444
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
namespace ChimeraTK { namespace detail {
std::string encodeDotNodeName(std::string name) {
std::replace(name.begin(), name.end(), '-', 'm'); // minus
std::replace(name.begin(), name.end(), ':', 'c'); // colon
std::replace(name.begin(), name.end(), '/', 's'); // slash
std::replace(name.begin(), name.end(), '.', 'd'); // dot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment