diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-08 10:59:45 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-08 10:59:45 +0200 |
| commit | ed38e895acee66d2685f0d7210f6eefd6fb81576 (patch) | |
| tree | a44df82835da58577d2957df38d7b9c4e42b9032 /menuconfig.py | |
| parent | aa39e8c3ca511c698df415b3dc7f93e3299f891d (diff) | |
Increase indent for implicit submenus to 4
Makes it easier to see the menu structure.
Make the indent configurable via a _SUBMENU_INDENT configuration
variable.
Diffstat (limited to 'menuconfig.py')
| -rwxr-xr-x | menuconfig.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/menuconfig.py b/menuconfig.py index 760839d..63c248e 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -102,6 +102,11 @@ from kconfiglib import Kconfig, \ # Configuration variables # +# How many steps an implicit submenu will be indented. Implicit submenus are +# created when an item depends on the symbol before it. Note that symbols +# defined with 'menuconfig' create a separate menu instead of indenting. +_SUBMENU_INDENT = 4 + # Number of steps for Page Up/Down to jump _PG_JUMP = 6 @@ -2022,7 +2027,7 @@ def _node_str(node): indent = 0 parent = node.parent while not parent.is_menuconfig: - indent += 2 + indent += _SUBMENU_INDENT parent = parent.parent # This approach gives nice alignment for empty string symbols ("() Foo") |
