Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix unaesthetic indentation

The current documentation build looks like this:

$ make htmldocs
SPHINX htmldocs --> file:///home/willy/kernel/linux-next/Documentation/output
make[2]: Nothing to be done for 'html'.
WARNING: The kernel documentation build process
support for Sphinx v3.0 and above is brand new. Be prepared for
possible issues in the generated output.
$

That extra indentation before my next prompt isn't pretty. This patch
fixes it, but I'm not a pythonista, and maybe there's a better way.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20210215161757.GD2858050@casper.infradead.org
[jc: tweaked for the "better way"]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Matthew Wilcox and committed by
Jonathan Corbet
36d8900d 336ced2d

+1 -2
+1 -2
Documentation/conf.py
··· 49 49 if major >= 3: 50 50 sys.stderr.write('''WARNING: The kernel documentation build process 51 51 support for Sphinx v3.0 and above is brand new. Be prepared for 52 - possible issues in the generated output. 53 - ''') 52 + possible issues in the generated output.\n''') 54 53 if (major > 3) or (minor > 0 or patch >= 2): 55 54 # Sphinx c function parser is more pedantic with regards to type 56 55 # checking. Due to that, having macros at c:function cause problems.