Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-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
This commit is contained in:
commit
d07d299cba
@ -135,7 +135,6 @@ summary {
|
|||||||
|
|
||||||
code, pre {
|
code, pre {
|
||||||
font-family: "Source Code Pro", monospace;
|
font-family: "Source Code Pro", monospace;
|
||||||
white-space: pre-wrap;
|
|
||||||
}
|
}
|
||||||
.docblock code, .docblock-short code {
|
.docblock code, .docblock-short code {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@ -303,6 +302,7 @@ nav.sub {
|
|||||||
|
|
||||||
:not(.source) .example-wrap > pre.rust {
|
:not(.source) .example-wrap > pre.rust {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body:not(.source) .example-wrap > pre {
|
body:not(.source) .example-wrap > pre {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user