-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc: odd wrapping in code blocks #41025
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
Comments
/cc @QuietMisdreavus |
I'm in the process of modifying rustdoc's formatting to match the fmt-rfcs for where clauses and function definitions. The indentation of the top-level where clause should be modified by this change, but it looks like I still need to look into why that's getting an extra space before that one curly braace. For reference, here's what it looks like on my local rustdoc: |
Note to self: This is because |
It looks like the |
…cxv,GuillaumeGomez rustdoc: update formatting of fn signatures and where clauses to match style rfcs Recent updates to style RFCs ([where clauses](rust-lang/style-team#38), [function definitions](rust-lang/style-team#39)) changed the "canonical" style for these items, so this is a rustdoc update to make it emit that style where necessary. This is mainly a conversion from visual indent to block indent, which helps out in situations where there was excessive indent causing lines to wrap regardless. Samples:        fixes #41025 and #40687 r? @rust-lang/docs
Link to docs: https://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html

How it looks on my machine:
Notice the space before
{
. Also, that indentation:where
is seemingly indented by two spaces, whilefn
is indented by four. However, if I copy the code and paste here, it looks normal:The text was updated successfully, but these errors were encountered: