Skip to content

Commit 8efcd30

Browse files
committed
[clang-doc] remove indentation for preformatted text
Text that is in between <pre> tags is formatted verbatim. Thus, the text that was correctly indented in relation to its depth in HTML was being indented incorrectly when rendered. That resulted in bad looking pages.
1 parent f4f247f commit 8efcd30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/clang-doc/assets/class-template.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
{{#PublicMembers}}
143143
<div id="{{Name}}" class="delimiter-container">
144144
<pre>
145-
<code class="language-cpp code-clang-doc" >{{Type}} {{Name}}</code>
145+
<code class="language-cpp code-clang-doc" >{{Type}} {{Name}}</code>
146146
</pre>
147147
{{#MemberComments}}
148148
<div>

clang-tools-extra/clang-doc/assets/namespace-template.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<li id="{{USR}}" style="max-height: 40px;">
9494
<a href="{{DocumentationFileName}}.html">
9595
<pre>
96-
<code class="language-cpp code-clang-doc">class {{Name}}</code>
96+
<code class="language-cpp code-clang-doc">class {{Name}}</code>
9797
</pre>
9898
</a>
9999
</li>

0 commit comments

Comments
 (0)