* [PATCH] Fix unaesthetic indentation
@ 2021-02-15 16:17 Matthew Wilcox
2021-02-15 16:33 ` Jonathan Corbet
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2021-02-15 16:17 UTC (permalink / raw)
To: linux-doc; +Cc: Jonathan Corbet
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>
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 5bd45d5fb0a0..8a9ed3f29cd5 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -50,7 +50,7 @@ if major >= 3:
sys.stderr.write('''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.
- ''')
+''')
if (major > 3) or (minor > 0 or patch >= 2):
# Sphinx c function parser is more pedantic with regards to type
# checking. Due to that, having macros at c:function cause problems.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix unaesthetic indentation
2021-02-15 16:17 [PATCH] Fix unaesthetic indentation Matthew Wilcox
@ 2021-02-15 16:33 ` Jonathan Corbet
2021-02-15 16:36 ` Matthew Wilcox
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Corbet @ 2021-02-15 16:33 UTC (permalink / raw)
To: Matthew Wilcox, linux-doc
Matthew Wilcox <willy@infradead.org> writes:
> 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>
>
> diff --git a/Documentation/conf.py b/Documentation/conf.py
> index 5bd45d5fb0a0..8a9ed3f29cd5 100644
> --- a/Documentation/conf.py
> +++ b/Documentation/conf.py
> @@ -50,7 +50,7 @@ if major >= 3:
> sys.stderr.write('''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.
> - ''')
> +''')
The alternative would be:
possible issues in the generated output.\n''')
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix unaesthetic indentation
2021-02-15 16:33 ` Jonathan Corbet
@ 2021-02-15 16:36 ` Matthew Wilcox
2021-02-15 18:21 ` Jonathan Corbet
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2021-02-15 16:36 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-doc
On Mon, Feb 15, 2021 at 09:33:44AM -0700, Jonathan Corbet wrote:
> Matthew Wilcox <willy@infradead.org> writes:
>
> > 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>
> >
> > diff --git a/Documentation/conf.py b/Documentation/conf.py
> > index 5bd45d5fb0a0..8a9ed3f29cd5 100644
> > --- a/Documentation/conf.py
> > +++ b/Documentation/conf.py
> > @@ -50,7 +50,7 @@ if major >= 3:
> > sys.stderr.write('''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.
> > - ''')
> > +''')
>
> The alternative would be:
>
> possible issues in the generated output.\n''')
Do you want me to submit a revised patch with that change?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix unaesthetic indentation
2021-02-15 16:36 ` Matthew Wilcox
@ 2021-02-15 18:21 ` Jonathan Corbet
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2021-02-15 18:21 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-doc
Matthew Wilcox <willy@infradead.org> writes:
>> The alternative would be:
>>
>> possible issues in the generated output.\n''')
>
> Do you want me to submit a revised patch with that change?
No worries, I can tweak it.
Thanks,
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-15 18:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 16:17 [PATCH] Fix unaesthetic indentation Matthew Wilcox
2021-02-15 16:33 ` Jonathan Corbet
2021-02-15 16:36 ` Matthew Wilcox
2021-02-15 18:21 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.