Skip to content

Commit bb95de4

Browse files
committed
[clang-doc] modify deleted newlines
1 parent eb865bd commit bb95de4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

clang-tools-extra/clang-doc/HTMLGenerator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ static std::unique_ptr<HTMLNode> genHTML(const CommentInfo &I) {
620620
}
621621
return std::move(FullComment);
622622
}
623+
623624
if (I.Kind == "ParagraphComment") {
624625
auto ParagraphComment = std::make_unique<TagNode>(HTMLTag::TAG_P);
625626
for (const auto &Child : I.Children) {
@@ -631,6 +632,7 @@ static std::unique_ptr<HTMLNode> genHTML(const CommentInfo &I) {
631632
return nullptr;
632633
return std::move(ParagraphComment);
633634
}
635+
634636
if (I.Kind == "BlockCommandComment") {
635637
auto BlockComment = std::make_unique<TagNode>(HTMLTag::TAG_DIV);
636638
auto Command = std::make_unique<TagNode>(HTMLTag::TAG_DIV, I.Name);

clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ TEST(HTMLGeneratorTest, emitNamespaceHTML) {
9292
</div>
9393
<h2 id="Enums">Enums</h2>
9494
<div>
95-
<h3 id="0000000000000000000000000000000000000000">enum OneEnum</h3>
95+
<table id=\"0000000000000000000000000000000000000000\">
96+
<thead>
97+
<tr>
98+
<th colspan=\"2\">enum OneEnum</th>
99+
</tr>
100+
</thead>
101+
</table>
96102
</div>
97103
</div>
98104
<div id="sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">

0 commit comments

Comments
 (0)