Skip to content

Conversation

IvanUkhov
Copy link
Contributor

The current nonzero side padding of code tags is good for legibility in paragraphs and lists; however, it introduces an awkward indentation to pre tags. Specifically, when a pre tag contains preformatted text with multiple lines, the fist line gets pushed slightly to the right, running the vertical alignment. An example can be seen here. I propose setting the padding to zero for codes contained in pres.

Regards,
Ivan

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Gankra
Copy link
Contributor

Gankra commented Jul 13, 2015

Oh wow, that's subtle. Nice catch!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 13, 2015

📌 Commit 71e7fee has been approved by Gankro

bors added a commit that referenced this pull request Jul 14, 2015
The current nonzero side padding of `code` tags is good for legibility in paragraphs and lists; however, it introduces an awkward indentation to `pre` tags. Specifically, when a `pre` tag contains preformatted text with multiple lines, the fist line gets pushed slightly to the right, running the vertical alignment. An example can be seen [here](http://doc.rust-lang.org/std/fmt/#syntax). I propose setting the padding to zero for `code`s contained in `pre`s.


Regards,
Ivan
@bors
Copy link
Collaborator

bors commented Jul 14, 2015

⌛ Testing commit 71e7fee with merge c8cddde...

@bors bors merged commit 71e7fee into rust-lang:master Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants