Escaping in P-code Graphviz exporter (Problems with graphs containing backslash strings)

This commit is contained in:
Jindra Petřík
2021-01-09 16:11:18 +01:00
parent 61b9660b49
commit b40c51634a
2 changed files with 2 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ public class PcodeGraphVizExporter {
}
}
String labelStr = blkCodeBuilder.toString();
labelStr = labelStr.replace("\\", "\\\\");
labelStr = labelStr.replace("\"", "\\\"");
labelStr = labelStr.replace("\r\n", "\\l");
String partBlockName = getBlockName(graphSource, part);