1 |
commit: c7e61fd606da3951e427c3c4931d2fb96e391738 |
2 |
Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 8 18:11:26 2017 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 05:17:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=c7e61fd6 |
7 |
|
8 |
CSS: let tabs in code blocks render as 4 positions |
9 |
|
10 |
Per devmanual, in ebuild files only tabs must be used for indentation, |
11 |
and each tab represents four spaces. However, many snippets of ebuild |
12 |
code in devmanual use spaces for indentation, making these snippets not |
13 |
immediately usable for pasting. Snippets indented with tabs, while |
14 |
technically conformant, look the wrong way. |
15 |
|
16 |
This change makes tabs-indented snippets look right, making it more |
17 |
attractive for contributors to use tabs for indentation, and paving the |
18 |
road for potential conversion of spaces-indented snippets to tabs. |
19 |
|
20 |
Acked-by: Gokturk Yuksek <gokturk <AT> gentoo.org> |
21 |
|
22 |
devmanual.css | 3 +++ |
23 |
1 file changed, 3 insertions(+) |
24 |
|
25 |
diff --git a/devmanual.css b/devmanual.css |
26 |
index 6f24642..1507558 100644 |
27 |
--- a/devmanual.css |
28 |
+++ b/devmanual.css |
29 |
@@ -154,6 +154,9 @@ div.figure, div.figure p { |
30 |
|
31 |
code, pre, tt { |
32 |
font-family: monospace; |
33 |
+ tab-size: 4; |
34 |
+ -o-tab-size: 4; |
35 |
+ -moz-tab-size: 4; |
36 |
} |
37 |
|
38 |
blockquote.epigraph p { |