Skip to content

Commit a9e4e21

Browse files
committed
Avoid printing trailing whitespaces
1 parent 363c1e2 commit a9e4e21

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

OMCompiler/Compiler/FrontEnd/DAEDump.mo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3336,10 +3336,12 @@ public function daeTypeStr
33363336
input DAE.Type inType;
33373337
output String outTypeStr;
33383338
protected
3339-
String s1,s2;
3339+
String typeAttrStr;
33403340
algorithm
3341-
(s1,s2) := printTypeStr(inType);
3342-
outTypeStr := s1 + " " + s2;
3341+
(outTypeStr, typeAttrStr) := printTypeStr(inType);
3342+
if typeAttrStr <> "" then
3343+
outTypeStr := outTypeStr + " " + typeAttrStr;
3344+
end if;
33433345
end daeTypeStr;
33443346

33453347
public function printTypeStr

0 commit comments

Comments
 (0)