From 7bbed068246aa5da7d0d405ab8df2bcad69b9584 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 5 Nov 2025 16:24:22 -0800 Subject: [PATCH] [clang-doc] remove indentation for preformatted text Text that is in between
 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.
---
 .../clang-doc/assets/class-template.mustache              | 8 ++------
 .../clang-doc/assets/namespace-template.mustache          | 4 +---
 clang-tools-extra/test/clang-doc/mustache-index.cpp       | 4 +---
 .../test/clang-doc/mustache-separate-namespace.cpp        | 4 +---
 4 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/clang-tools-extra/clang-doc/assets/class-template.mustache b/clang-tools-extra/clang-doc/assets/class-template.mustache
index b1a7470f7c33a..a320a938a91ff 100644
--- a/clang-tools-extra/clang-doc/assets/class-template.mustache
+++ b/clang-tools-extra/clang-doc/assets/class-template.mustache
@@ -141,9 +141,7 @@
                 
{{#PublicMembers}}
-
-                            {{Type}} {{Name}}
-                        
+
{{Type}} {{Name}}
{{#MemberComments}}
{{>Comments}} @@ -160,9 +158,7 @@
{{#Obj}}
-
-{{Type}} {{Name}}
-                        
+
{{Type}} {{Name}}
{{#MemberComments}}
{{>Comments}} diff --git a/clang-tools-extra/clang-doc/assets/namespace-template.mustache b/clang-tools-extra/clang-doc/assets/namespace-template.mustache index d96bc5ce91f3a..f4a35cfe4c79a 100644 --- a/clang-tools-extra/clang-doc/assets/namespace-template.mustache +++ b/clang-tools-extra/clang-doc/assets/namespace-template.mustache @@ -92,9 +92,7 @@ {{#Records}}
  • -
    -                                        class {{Name}}
    -                                    
    +
    class {{Name}}
  • {{/Records}} diff --git a/clang-tools-extra/test/clang-doc/mustache-index.cpp b/clang-tools-extra/test/clang-doc/mustache-index.cpp index f9aad193799b3..5317b639bc500 100644 --- a/clang-tools-extra/test/clang-doc/mustache-index.cpp +++ b/clang-tools-extra/test/clang-doc/mustache-index.cpp @@ -70,9 +70,7 @@ class Foo; // CHECK-NEXT: diff --git a/clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp b/clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp index a73a5ab6a843b..880562d0deebd 100644 --- a/clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp +++ b/clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp @@ -9,9 +9,7 @@ namespace MyNamespace { // CHECK: