Skip to content

Commit 12cb472

Browse files
Rollup merge of rust-lang#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
2 parents d804bdd + 23abd18 commit 12cb472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ summary {
135135

136136
code, pre {
137137
font-family: "Source Code Pro", monospace;
138-
white-space: pre-wrap;
139138
}
140139
.docblock code, .docblock-short code {
141140
border-radius: 3px;
@@ -303,6 +302,7 @@ nav.sub {
303302

304303
:not(.source) .example-wrap > pre.rust {
305304
width: 100%;
305+
overflow-x: auto;
306306
}
307307

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

0 commit comments

Comments
 (0)