Skip to content

Commit

Permalink
Escape screen names.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Jan 4, 2019
1 parent 2e68feb commit 5742f9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BalsamiqFlowOverview/FlowOverview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public string GetGraphViz()
foreach (var link in s.linksToScreens)
{
var s2 = link.screen;
sb.AppendLine($" {s.name}->{s2.name}[label = \"{link.linkName}\"]");
sb.AppendLine($" \"{s.name.Replace("\"", "\\\"")}\"->\"{s2.name}\"[label = \"{link.linkName}\"]");
}
}
sb.AppendLine("}");
Expand Down
3 changes: 2 additions & 1 deletion BalsamiqFlowOverview/FlowScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class FlowLink

class FlowScreen
{
public FlowScreen(string name) {
public FlowScreen(string name)
{
this.name = name;
}
public readonly string name;
Expand Down
2 changes: 1 addition & 1 deletion BalsamiqFlowOverview/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static void Main(string[] args)
File.WriteAllText("flow.txt", graphViz);
//Console.ReadLine();
}


static List<Control> GetControls(BalsamiqBmml bmml)
{
Expand Down

0 comments on commit 5742f9c

Please sign in to comment.