-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustdoc doc(cfg) rendering gets ugly with long cfg expressions #87957
Comments
What if we inserted zero width spaces after the keywords? So after each |
If we start having "groups", not sure if it'll work well. But definitely worth a try! |
I need to see things to be able to make my own opinion on which approach is better. 😄 But maybe @jsha has an idea? |
Maybe it could show "any of"/"all of" on longer chains (say 3+)? I don't think there's a ton that can realistically be done here — a long cfg is going to result in a long doc cfg. |
There are a lot of things that can be done. For example, for more than 3 items, we could show only the 3 first and show the rest on click. It's mostly about how to display things. |
I think long cfg expressions should be broken across multiple lines. I saw this cause issues here:
The text was updated successfully, but these errors were encountered: