-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[clang-doc] Fix </section> mismatch in the namespace template
#168966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang-doc] Fix </section> mismatch in the namespace template
#168966
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
@llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) ChangesA Full diff: https://github.com/llvm/llvm-project/pull/168966.diff 1 Files Affected:
diff --git a/clang-tools-extra/clang-doc/assets/namespace-template.mustache b/clang-tools-extra/clang-doc/assets/namespace-template.mustache
index f4a35cfe4c79a..614023b9f6723 100644
--- a/clang-tools-extra/clang-doc/assets/namespace-template.mustache
+++ b/clang-tools-extra/clang-doc/assets/namespace-template.mustache
@@ -97,8 +97,8 @@
</li>
{{/Records}}
</ul>
- {{/HasRecords}}
</section>
+ {{/HasRecords}}
</div>
</div>
</main>
|
|
If you inspect the HTML, you can see the mismatch in the pre-fix output: https://erickvelez.com/clang-doc-mustache-output/section-mismatch/GlobalNamespace/ Here is the fixed output: https://erickvelez.com/clang-doc-mustache-output/pr168966/GlobalNamespace/ |
🐧 Linux x64 Test Results
|
ilovepi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Took me a minute to realize I needed to check the raw source over using the inspection tool to see the diff.
Can you add a test case?
9dc79f2 to
0cd3d59
Compare
ilovepi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, modulo a small tweak tot he check line.
clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp
Outdated
Show resolved
Hide resolved
A `</section>` tag wasn't inside the `{{#HasRecords}}` Mustache tag, which caused a
mismatch if there weren't any records to render.
0cd3d59 to
c82802e
Compare

A
</section>tag wasn't inside the{{#HasRecords}}Mustache tag, which caused amismatch if there weren't any records to render.