-
Notifications
You must be signed in to change notification settings - Fork 61
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
Match HTML p
tags in home page
#265
Comments
fluca1978
added a commit
to fluca1978/pgagroal
that referenced
this issue
Jun 13, 2022
The `home_page()` function provides an HTML page with the description of all the metrics exported to Prometheus. The HTML code was missing the `<p>` and `</p>` pairs, only one `<p>` was present at the end of each section. This commit fixes the problem and indents the code of one space within each paragraph. Close agroal#265
The HTML should pass the XHTML check on validator.w3.org |
fluca1978
added a commit
to fluca1978/pgagroal
that referenced
this issue
Jun 14, 2022
This commit refactors the HTML produced by `home_page()` function that describes the set of metrics exported to Prometheus. The produced HTML now passes the XHTML validation at <https://validator.w3.org>, using CSS and other tags to make the document well formed. It also fixes the problem of the `p` pairs: before this there were only opening paragraphs at the end of each section. Close agroal#265 Close agroal#267
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
prometheus.c
home_page
functuion outputs a set of information that have a structure like:while it should be something like:
'''
title
bla bla
```so that
p
tags are always matched. This does not cause at the moment any problem with browsers, but makes the HTML code cleaner and more correct.The text was updated successfully, but these errors were encountered: