# Re: \[PATCH 01/13\] docs: conf.py: fix sphinx version detection for margin set

- From: Mauro Carvalho Chehab \<mchehab+huawei@kernel.org\>
- Date: 2020-12-10 16:05:20 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2020/12/6206412
- Thread: https://ratatoskr.run/linux-media/2020/12/6205965/t.md

```text
Em Thu, 10 Dec 2020 07:48:45 -0700
Jonathan Corbet [ref] escreveu:

> On Thu, 10 Dec 2020 11:55:40 +0100
> Mauro Carvalho Chehab [ref] wrote:
> 
> > The PDF generator has a logic to detect the proper way to
> > setup the page margins. By default, the page has about
> > 14.8 cm, which is too short to display some tables and literal
> > blocks. So, previous patches changed it to be around 17.5 cm,
> > but the logic only works with Sphinx version 1.x.x.
> > 
> > Fix it.
> > 
> > Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>  
> 
> Acked-by: Jonathan Corbet <corbet@lwn.net>
> 
> Feel free to route this one with the rest of the set.
> 
> Someday it might be nice to isolate all of the latex stuff into
> conf-latex.py or some such so most of us don't have to look at it..:)

Yeah, makes sense.

Btw, just gave another trial of rst2pdf (sent the RFC patch
adding support for it)...


Still doesn't work: lots of documents are produced with
zero size :-(


Thanks,
Mauro
```
