Skip to contentSkip to conversation

KUnit: Docs: style: fix some Kconfig example issues

PATCH In review Randy Dunlap 2 participants 2 messages Oct 28, 2020 – Oct 29, 2020

Subsystems (4)
lore
Share & tools
lore

Randy Dunlap

author reviewer
#0 lore raw

PATCH v2 1/1 KUnit: Docs: style: fix some Kconfig example issues

Fix the Kconfig example to be closer to Kconfig coding style.

Also add punctuation and a trailing slash ('/') to a sub-directory name -- this is how the text mostly appears in other Kconfig files.

---
v2: covert spaces indentation to tabs in Kconfig example

 Documentation/dev-tools/kunit/style.rst |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
Documentation/dev-tools/kunit/style.rst +9 -9
@@ -175,17 +175,17 @@ An example Kconfig entry:
 
 .. code-block:: none
 
-        config FOO_KUNIT_TEST
-                tristate "KUnit test for foo" if !KUNIT_ALL_TESTS
-                depends on KUNIT
-                default KUNIT_ALL_TESTS
-                help
-                    This builds unit tests for foo.
+	config FOO_KUNIT_TEST
+		tristate "KUnit test for foo" if !KUNIT_ALL_TESTS
+		depends on KUNIT
+		default KUNIT_ALL_TESTS
+		help
+		  This builds unit tests for foo.
 
-                    For more information on KUnit and unit tests in general, please refer
-                    to the KUnit documentation in Documentation/dev-tools/kunit
+		  For more information on KUnit and unit tests in general, please refer
+		  to the KUnit documentation in Documentation/dev-tools/kunit/.
 
-                    If unsure, say N
+		  If unsure, say N.
 
 
 Test File and Module Names
#1 lore raw
Quoted 14 lines · Randy Dunlap

Fix the Kconfig example to be closer to Kconfig coding style.

Also add punctuation and a trailing slash ('/') to a sub-directory name -- this is how the text mostly appears in other Kconfig files.

Quoted 3 lines

---
v2: covert spaces indentation to tabs in Kconfig example

Thanks! Sphinx is still converting the tabs to spaces for its HTML output, but this is nevertheless an improvement.

Cheers,
-- David