nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitunit: try to mass compile all docunits at once
[nit.git]
/
src
/
uml
/
uml_module.nit
diff --git
a/src/uml/uml_module.nit
b/src/uml/uml_module.nit
index
1720ff0
..
19726ed
100644
(file)
--- a/
src/uml/uml_module.nit
+++ b/
src/uml/uml_module.nit
@@
-47,6
+47,7
@@
end
redef class MModule
redef fun tpl_module(model) do
redef class MModule
redef fun tpl_module(model) do
+ var name = self.name.escape_to_dot
var t = new Template
t.add "subgraph cluster{name} \{\n"
t.add "label = \"{name}\"\n"
var t = new Template
t.add "subgraph cluster{name} \{\n"
t.add "label = \"{name}\"\n"
@@
-72,8
+73,9
@@
redef class MClassDef
var redef_colour = "#B24758"
redef fun tpl_module(model) do
var redef_colour = "#B24758"
redef fun tpl_module(model) do
+ var name = self.name.escape_to_dot
var t = new Template
var t = new Template
- t.add "{mmodule}{name} [\n\tlabel = \"\{"
+ t.add "{mmodule.name.escape_to_dot}{name} [\n\tlabel = \"\{"
if mclass.kind == abstract_kind then
t.add "abstract\\n{name}"
else if mclass.kind == interface_kind then
if mclass.kind == abstract_kind then
t.add "abstract\\n{name}"
else if mclass.kind == interface_kind then