Skip to content

Commit c717a70

Browse files
authored
Rollup merge of rust-lang#50947 - QuietMisdreavus:nice-tabs, r=GuillaumeGomez
rustdoc: set tab width in rust source blocks cc rust-lang#49155 (fixes it?) This sets the tab width ([in supported browsers](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size)) in Rust source blocks to 4 spaces wide (instead of the default 8), to correspond with the style guidelines.
2 parents aa63dce + ac38345 commit c717a70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+2
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,8 @@ span.since {
10101010

10111011
pre.rust {
10121012
position: relative;
1013+
tab-width: 4;
1014+
-moz-tab-width: 4;
10131015
}
10141016

10151017
.search-failed {

0 commit comments

Comments
 (0)