Skip to content

Commit 0a879b4

Browse files
committed
Changed first label of NODE so that it can contain spaces.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@620 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3435fc5 commit 0a879b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modeq/graphviz.rml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ end
6262
relation dump_node : Node => Ident =
6363

6464
rule nodename typ => nm &
65-
list_append([ATTR("label", typ)], attr) => newattr &
65+
make_label [typ] => typlbl &
66+
list_append([ATTR("label", typlbl)], attr) => newattr &
6667
make_node(nm, newattr) => out &
6768
print out &
6869
dump_children(nm, children)
@@ -124,9 +125,11 @@ relation dump_children : (Ident, Children) => () =
124125
end
125126

126127

128+
(* changed use of str as part of nodename, since it may contain spaces
129+
*)
127130
relation nodename : string => string =
128131

129-
rule tick => i & int_string i => is & string_append(str,is) => s
132+
rule tick => i & int_string i => is & string_append("GVNOD",is) => s
130133
-----------------------------------------------------------------
131134
nodename str => s
132135
end

0 commit comments

Comments
 (0)