Skip to content

Commit a3938fc

Browse files
cirrasfourls
authored andcommitted
Fix malformed HTML in rule descriptions
1 parent dbd003f commit a3938fc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitTObjectInheritance.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h2>Why is this an issue?</h2>
44
explicitly inherit from TObject for readability.
55
</p>
66
<h2>How to fix it</h2>
7-
<p>Specify <code>TObject</code> as the class's ancestor:
7+
<p>Specify <code>TObject</code> as the class's ancestor:</p>
88
<pre data-diff-id="1" data-diff-type="noncompliant">
99
type
1010
TMyClass = class
@@ -25,4 +25,3 @@ <h2>Resources</h2>
2525
</a>
2626
</li>
2727
</ul>
28-
</p>

delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/IndexLastListElement.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ <h2>How to fix it</h2>
1010
Use <code>TList.Last</code> instead of indexing with <code>Count - 1</code>:
1111
</p>
1212
<pre data-diff-id="1" data-diff-type="noncompliant">
13-
procedure PrintMostRecent(MyList: TList<Integer>);
13+
procedure PrintMostRecent(MyList: TList&lt;Integer&gt;);
1414
begin
1515
WriteLn(MyList[MyList.Count - 1]);
1616
end;
1717
</pre>
1818
<pre data-diff-id="1" data-diff-type="compliant">
19-
procedure PrintMostRecent(MyList: TList<Integer>);
19+
procedure PrintMostRecent(MyList: TList&lt;Integer&gt;);
2020
begin
2121
WriteLn(MyList.Last);
2222
end;

0 commit comments

Comments
 (0)