-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Weird formatting on documentation of "Summary" button #132564
Comments
This is due to "Summary" having a newline in it. You can see the newline in Lines 35 to 36 in 82c24ec
I'm going to send in a modification, but I'm not sure how to document why that change is being made, so it doesn't happen again. A quick search through the code confirms that this is the only place where we have an inside a @rustbot claim |
you can put a non-doc comment ( |
On second thought, I don't love the idea of breaking up documentation with notes on why the documentation is formatted the way it is. I think this isn't so big of an issue that it needs to be commented on. |
another option is coding a check into |
…iper Fix an extra newline in rendered std doc Fixes rust-lang#132564 ![17308581942254367500907812250579](https://github.com/user-attachments/assets/9e946c49-c0a6-40ba-ab69-b80fe0e085e1) (taken from the issue above) The problem with the formatting is due to that newline between `<code>` and `<svg>`. Any newlines outside of the code (i.e., within elements inside of it) are fine.
Rollup merge of rust-lang#132617 - uellenberg:fix-rendered-doc, r=cuviper Fix an extra newline in rendered std doc Fixes rust-lang#132564 ![17308581942254367500907812250579](https://github.com/user-attachments/assets/9e946c49-c0a6-40ba-ab69-b80fe0e085e1) (taken from the issue above) The problem with the formatting is due to that newline between `<code>` and `<svg>`. Any newlines outside of the code (i.e., within elements inside of it) are fine.
location: https://doc.rust-lang.org/nightly/std/#how-to-read-this-documentation
I believe this issue comes from using an
svg
element inside acode
element.The text was updated successfully, but these errors were encountered: