Skip to content

Commit 7f4b1c7

Browse files
[Janitor mode] Fix whitespace
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24774 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent d9bc2f1 commit 7f4b1c7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Compiler/Script/Figaro.mo

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ protected
3131
String figaro, database, xml, xml2;
3232
list<String> sl;
3333
algorithm
34-
34+
3535
program := SCodeUtil.getElementWithPathCheckBuiltin(inProgram, inPath);
3636

3737
// Code for the Figaro objects.
3838
figaro := makeFigaro(inProgram, program);
39-
39+
4040
if figaro == ""
4141
then fail();
4242
end if;
@@ -95,11 +95,11 @@ algorithm
9595

9696
// Debug.
9797
printFigaroClassList(fcl);
98-
print("\n\n");
98+
print("\n\n");
9999

100100
fol := foElement(fcl, inModel);
101101

102-
// Debug.
102+
// Debug.
103103
printFigaroObjectList(fol);
104104

105105
outCode := figaroObjectListToString(fol);
@@ -548,20 +548,20 @@ algorithm
548548
xml := "<REQUESTS>\n ";
549549
xml := xml + "\n\n<LOAD_BDC_FI>\n <FILE>";
550550
xml := xml + inDatabase;
551-
552-
// In case a dbc file exists
551+
552+
// In case a dbc file exists
553553
sl := stringListStringChar(inDatabase);
554554
newName := truncateExtension(sl);
555555
if System.regularFileExists(newName + ".bdc") then
556556
xml := xml + "</FILE>\n<FILE> " + newName + ".bdc";
557557
end if;
558-
558+
559559
xml := xml + "</FILE>\n</LOAD_BDC_FI>\n";
560560
xml := xml + "\n\n<LOAD_BDF_FI>\n <FILE>";
561561
xml := xml + inBdfFile;
562562
xml := xml + "</FILE>\n</LOAD_BDF_FI>\n";
563563
xml := xml + "<RUN_TREATMENT>\n";
564-
564+
565565

566566
// In case the fault tree will be needed.
567567
if inMode == "figaro0" then
@@ -578,22 +578,22 @@ algorithm
578578

579579
xml := xml + "\n <RESOLVE_CONST>VRAI</RESOLVE_CONST>\n <RESOLVE_ATTR>FAUX</RESOLVE_ATTR>\n <INST_RULE>VRAI</INST_RULE>\n";
580580
xml := xml + "</RUN_TREATMENT>\n</REQUESTS>";
581-
outXml := xml;
581+
outXml := xml;
582582
end makeXml;
583583

584584
protected function truncateExtension
585585
input List<String> name;
586586

587587
output String newName;
588-
algorithm
588+
algorithm
589589
newName := match name
590590
local String c;
591591
List<String> rest;
592592
case "."::rest
593593
then "";
594594
case c::rest
595595
then stringAppend (c, truncateExtension(rest));
596-
end match;
596+
end match;
597597
end truncateExtension;
598598

599599
protected function callFigaroProcessor "Calls the Figaro processor."

0 commit comments

Comments
 (0)