Skip to content

Commit 49e6db7

Browse files
Seldaekalexcrichton
authored andcommitted
Prevent source view from wrapping lines
1 parent 1501d65 commit 49e6db7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustdoc/html/static/main.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ body {
118118
.content h1 { margin-top: 0; }
119119
.content h1, .content h2 { margin-left: -20px; }
120120
.content pre { padding: 20px; }
121-
121+
.content.source pre.rust {
122+
white-space: pre;
123+
overflow: auto;
124+
padding-left: 0;
125+
}
122126
.content pre.line-numbers { float: left; border: none; }
123127
.line-numbers span { color: #c67e2d; }
124128
.line-numbers .line-highlighted {

0 commit comments

Comments
 (0)