Skip to content

Commit

Permalink
fix dot label printer
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Jan 15, 2017
1 parent c075ad0 commit c4bff57
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/dot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,22 @@ function label2str(label)
label = compact_labels(label)
ss = []
for range in label
s = label2str(first(range))
s = first(range)
if s 0x7f
s = repr(Char(s))
else
s = repr(s)
end
if length(range) 2
s = string(s, ':', label2str(last(range)))
t = last(range)
if t 0x7f
t = repr(Char(t))
else
t = repr(t)
end
s = string(s, ':', t)
end
push!(ss, s)
push!(ss, escape_string(s))
end
return join(ss, ',')
else
Expand Down

0 comments on commit c4bff57

Please sign in to comment.