Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>

Apply suggestions from code review

Minor formatting changes in html code
  • Loading branch information
HansOlsson committed Jan 11, 2024
1 parent 578c403 commit e872ac3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ equation
connect(currentSource.p, ground.p)
annotation (Line(points={{-40,-10},{-20,-10}}, color={0,0,255}));
connect(ground.p, capacitor.n)
annotation (Line(points={{-20,-10},{0,-10}}, color={0,0,255}));
annotation (Line(points={{-20,-10},{0,-10}}, color={0,0,255}));
connect(currentSource.n, capacitor.p)
annotation (Line(points={{-40,10},{0,10}}, color={0,0,255}));
annotation (Line(points={{-40,10},{0,10}}, color={0,0,255}));
annotation (Icon(coordinateSystem(
preserveAspectRatio=false, extent={{-100,-100},{100,100}}),
graphics={Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ equation
connect(dcpm.flange, loadInertia.flange_a) annotation (Line(
points={{20,-20},{40,-20}}));
connect(dcpm.pin_an, ground.p)
annotation (Line(points={{4,-10},{4,0},{-8,0}},color={0,0,255}));
annotation (Line(points={{4,-10},{4,0},{-8,0}}, color={0,0,255}));
connect(signalVoltage.p, currentSensor.p)
annotation (Line(points={{20,30},{20,20}}, color={0,0,255}));
connect(currentSensor.n, dcpm.pin_ap)
Expand Down
17 changes: 12 additions & 5 deletions Modelica/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1300,15 +1300,22 @@ be defined like:
tab=\"Controller\",
group=\"Speed control\"));
</pre></blockquote>

<h4>Whitespace and Indentation</h4>
<p>
Trailing white-space (i.e., white-space at the end of the lines) shall not be used.
The tab-character shall not be used, since the tab-stops are not standardized.</p>
<p>The code in a class shall be indented relative to the class in steps of two spaces;
except that the headings <code>public</code>, <code>protected</code>, <code>equation</code>, <code>algorithm</code>, and <code>end</code> of class marker shall not be indented.
The keywords <code>public</code> and <code>protected</code> are headings for a group of declarations.
The tab-character shall not be used, since the tab-stops are not standardized.
</p>
<p>
The code in a&nbsp;class shall be indented relative to the class in steps of two spaces;
except that the headings <code>public</code>, <code>protected</code>, <code>equation</code>,
<code>algorithm</code>, and <code>end</code> of class marker shall not be indented.
The keywords <code>public</code> and <code>protected</code> are headings for a&nbsp;group
of declarations.
</p>
<p>
Full class definitions shall be separated by an empty line.
</p>
<p>Full class definitions shall be separated by an empty line.</p>
</html>"));
end Format;

Expand Down

0 comments on commit e872ac3

Please sign in to comment.