Skip to content

Commit

Permalink
Fix quoting in DOT (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen committed Jul 19, 2024
1 parent d0438be commit d479ac8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fun EtsFileDto.toDot(useLR: Boolean = false): String {

fun statementLabel(stmt: StmtDto): String {
val labelLines: MutableList<String> = mutableListOf()
labelLines += "$stmt"
labelLines += "$stmt".replace("\"", "\\\"")
return labelLines.joinToString("") { "${it}\\l" }
}

Expand Down Expand Up @@ -137,7 +137,7 @@ fun EtsFileDto.toDot(useLR: Boolean = false): String {
val ids = List(bb.stmts.size) { i ->
"${b}.${i}"
}
lines += " ${ids.joinToString(" -> ") { """"$it"""" }};"
lines += " ${ids.joinToString(" -> ") { "\"$it\"" }};"
}

lines += " }"
Expand Down

0 comments on commit d479ac8

Please sign in to comment.