未验证 提交 c717a70a 编写于 作者: K kennytm 提交者: GitHub

Rollup merge of #50947 - QuietMisdreavus:nice-tabs, r=GuillaumeGomez

rustdoc: set tab width in rust source blocks

cc https://github.com/rust-lang/rust/issues/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.
......@@ -1010,6 +1010,8 @@ span.since {
pre.rust {
position: relative;
tab-width: 4;
-moz-tab-width: 4;
}
.search-failed {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册