Skip to content

Commit

Permalink
Rollup merge of rust-lang#56476 - GuillaumeGomez:invalid-line-number-…
Browse files Browse the repository at this point in the history
…match, r=QuietMisdreavus

Fix invalid line number match

If a code line is longer than the width, it then gets to the next line making the line number not matching it anymore.

r? @QuietMisdreavus
  • Loading branch information
pietroalbini authored Dec 5, 2018
2 parents 650b4ed + 23abd18 commit d07d299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ summary {

code, pre {
font-family: "Source Code Pro", monospace;
white-space: pre-wrap;
}
.docblock code, .docblock-short code {
border-radius: 3px;
Expand Down Expand Up @@ -303,6 +302,7 @@ nav.sub {

:not(.source) .example-wrap > pre.rust {
width: 100%;
overflow-x: auto;
}

body:not(.source) .example-wrap > pre {
Expand Down

0 comments on commit d07d299

Please sign in to comment.