From 41c26e25a6311a08bed34bd0d0ee9f2e42a8cacc Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Tue, 8 Oct 2024 12:02:10 +0000 Subject: [PATCH] replace '\n' with '<br/>' in mermaid export --- src/graph/GraphView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp index ef322fe5b..b7d45488a 100644 --- a/src/graph/GraphView.cpp +++ b/src/graph/GraphView.cpp @@ -103,7 +103,7 @@ void Aidge::GraphView::save(const std::string& path, bool verbose, bool showProd std::string givenName = (node_ptr->name().empty()) ? "<em>" + node_ptr->type() + "#" + namePtrTable.at(node_ptr) + "</em>" - : "\"" + node_ptr->name() + "\\n<sub><em>(" + node_ptr->type() + "#" + namePtrTable.at(node_ptr) + ")</em></sub>\""; + : "\"" + node_ptr->name() + "<br\\><sub><em>(" + node_ptr->type() + "#" + namePtrTable.at(node_ptr) + ")</em></sub>\""; std::string nodeCls = ""; if (node_ptr->type() == "Producer") { -- GitLab