From a02455a3defa86d82625c6f8002b7acd4cdeb1ca Mon Sep 17 00:00:00 2001 From: Vegard Nossum Date: Tue, 11 Mar 2025 08:51:19 +0900 Subject: [PATCH] doc: kerneldoc.py: fix indentation BugLink: https://bugs.launchpad.net/bugs/2101915 kerneldoc.py is mostly indented with 4 spaces (like PEP8 suggests); replace the last remaining tabs for consistency. No functional change. Cc: Jani Nikula Cc: Mauro Carvalho Chehab Signed-off-by: Vegard Nossum Reviewed-by: Randy Dunlap Signed-off-by: Jonathan Corbet Link: https://lore.kernel.org/r/20240215134828.1277109-6-vegard.nossum@oracle.com (cherry picked from commit 53d4e8959bfedba919b6eb7648ecb8be63941726) [koichiroden: prereq for "kernel-doc: allow object-like macros in ReST output"] Signed-off-by: Koichiro Den Signed-off-by: Stefan Bader --- Documentation/sphinx/kerneldoc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py index 7acf09963daa..ec1ddfff1863 100644 --- a/Documentation/sphinx/kerneldoc.py +++ b/Documentation/sphinx/kerneldoc.py @@ -61,9 +61,9 @@ class KernelDocDirective(Directive): env = self.state.document.settings.env cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno'] - # Pass the version string to kernel-doc, as it needs to use a different - # dialect, depending what the C domain supports for each specific - # Sphinx versions + # Pass the version string to kernel-doc, as it needs to use a different + # dialect, depending what the C domain supports for each specific + # Sphinx versions cmd += ['-sphinx-version', sphinx.__version__] filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]