Skip to content

Commit

Permalink
Fix HTML tags and double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Apr 9, 2020
1 parent b51bc8d commit 362c49d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Modelica/Math/nearestInteger.mo
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Math.<strong>nearestInteger</strong>(r);
<h4>Description</h4>
<p>
The input value \"r\" of type Real is converted to the closest Integer value \"i\",
using the <i>round half away from zero</i> rule with the equation:
The input value \"r\" of type Real is converted to the closest Integer value \"i\",
using the <em>round half away from zero</em> rule with the equation:
</p>
<blockquote><pre>
i = <strong>integer</strong>( <strong>floor</strong>( r + 0.5 ) ) for r &gt; 0;
Expand All @@ -33,7 +33,7 @@ Math.nearestInteger(0.5); // = 1
Math.nearestInteger(-0.4); // = 0
Math.nearestInteger(-0.5); // = -1
Math.nearestInteger(0.3999999999999999+0.1); // = 0
Math.nearestInteger(1.39999999999999999+0.1); // = 1 (errorneous border case, see note below)
Math.nearestInteger(1.39999999999999999+0.1); // = 1 (erroneous border case, see note below)
</pre></blockquote>
<h4>Note</h4>
Expand Down
9 changes: 4 additions & 5 deletions Modelica/Utilities/Internal.mo
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ All returned values are of type Integer and have the following meaning:
</p>
<blockquote>
<table border=1 cellspacing=0 cellpadding=2>
<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
<tr><th>Argument</th>
<th>Range</th>
<th>Description</th></tr>
Expand Down Expand Up @@ -302,13 +302,13 @@ All returned values are of type Integer and have the following meaning:
<h4>Note</h4>
<p>This function is impure!</p>
</html>", revisions="<html>
<table border=1 cellspacing=0 cellpadding=2>
<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
<tr><th>Date</th> <th align=\"left\">Description</th></tr>
<tr><td> June 22, 2015 </td>
<td>
<table border=0>
<table border=\"0\">
<tr><td>
<img src=\"modelica://Modelica/Resources/Images/Logos/dlr_logo.png\">
</td><td valign=\"bottom\">
Expand Down Expand Up @@ -348,13 +348,12 @@ dow = Internal.Time.<strong>dayOfWeek</strong>(year, mon, day);
</pre></blockquote>
<h4>Description</h4>
<p>
<p>
Returns the day of the week for a given date using Tomohiko Sakamoto's algorithm.
The returned Integer number of <code>dow</code> has the following meaning:
</p>
<blockquote>
<table border=1 cellspacing=0 cellpadding=2>
<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
<tr><th>Day of week</th>
<th>Number</th></tr>
Expand Down
4 changes: 2 additions & 2 deletions Modelica/Utilities/Time.mo
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The returned Integer number of <code>dow</code> has the following meaning:
</p>
<blockquote>
<table border=1 cellspacing=0 cellpadding=2>
<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
<tr><th>Day of week</th>
<th>Number</th></tr>
Expand Down Expand Up @@ -897,7 +897,7 @@ String(d, format)
</p>
<p>
If higher time value are not included, they are added to the next lower time value.
If e.g. days are not part of the format string, but hours, the number of days will be converted
If e.g. days are not part of the format string, but hours, the number of days will be converted
to hours and added to the hours value.
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Utilities/Types.mo
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ package Types "Type definitions used in package Modelica.Utilities"
Integer year "Year" annotation(absoluteValue=true);
annotation (Documentation(info="<html>
<blockquote>
<table border=1 cellspacing=0 cellpadding=2>
<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
<tr><th>Argument</th>
<th>Range</th>
<th>Description</th></tr>
Expand Down

0 comments on commit 362c49d

Please sign in to comment.