Skip to content

rustdoc: list elements containing multiple paragraphs have confusing margins #130761

Closed as not planned

Description

@lolbinarycat

take the feature flags on the time crate.

before

the descriptions are grouped closer to the next element, instead of the one they actually apply to!

here's my simple fix:

.docblock li {
  margin-bottom: .8em;
}

.docblock li p {
  margin-bottom: .1em;
}

here's what it looks like with this fix applied:

after

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 23, 2024
  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Sep 23, 2024
  3. lolbinarycat commented on Sep 23, 2024

    @lolbinarycat
    ContributorAuthor

    waiting to open a PR until #129545 is merged.

  4. sloanev commented on Sep 23, 2024

    @sloanev
    Contributor

    Note for everyone's convenience: this is a duplicate issue of #130622.

  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions