Skip to content

Remove padding when code spans/code link spans are adjacent #62867

Closed
@Nemo157

Description

@Nemo157
Member

I used

[`Stream`](futures::stream::Stream)`<Item = `[`io::Result`](std::io::Result)`<`[`Bytes`](bytes::Bytes)`>>`

in some crates documentation which renders as

concated-code

There is currently a 0.1em padding applied inside all code spans causing the spacing to look weird. It seems like adjacent code spans (including ones wrapped inside <a>) should have the padding suppressed so they render as if they were one code span.

Activity

added
C-bugCategory: This is a bug.
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on Jul 22, 2019
GuillaumeGomez

GuillaumeGomez commented on Jul 23, 2019

@GuillaumeGomez
Member

There was a reason for this. I'll check why.

GuillaumeGomez

GuillaumeGomez commented on Jul 23, 2019

@GuillaumeGomez
Member

The reason why:

Screenshot from 2019-07-23 13-39-45

It's not very nice looking on "normal" blocks to not have a bit of padding.

GuillaumeGomez

GuillaumeGomez commented on Jul 23, 2019

@GuillaumeGomez
Member

I've got an idea on how to fix. Let's put it to try!

GuillaumeGomez

GuillaumeGomez commented on Jul 23, 2019

@GuillaumeGomez
Member

Won't work, CSS is too limited for that. The only solution I see currently would be to be able to detect that code tags are following each others and merging them as one.

dtolnay

dtolnay commented on Jul 23, 2019

@dtolnay
Member
GuillaumeGomez

GuillaumeGomez commented on Jul 23, 2019

@GuillaumeGomez
Member

That's something! 🤣

self-assigned this
on Apr 9, 2021
added
A-rustdoc-uiArea: Rustdoc UI (generated HTML)
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
and removed
C-bugCategory: This is a bug.
on Apr 9, 2021

9 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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

    Participants

    @Nemo157@notriddle@jonas-schievink@dtolnay@GuillaumeGomez

    Issue actions

      Remove padding when code spans/code link spans are adjacent · Issue #62867 · rust-lang/rust