Wrong table margins with Sphinx 2
Created originally on Bitbucket by Anonymous
Sphinx 2
b elements around stuff in tables and lists. This causes tables to take up more space.
See this issue:
https://github.com/sphinx-doc/sphinx/issues/6113
The solution is to add the following to the CSS.
th > p:first-child,
td > p:first-child,
li > p:first-child,
dt > p:first-child,
dd > p:first-child,
dl > p:first-child {
margin-top: 0px;
}
th > p:last-child,
td > p:last-child,
li > p:last-child,
dt > p:last-child,
dd > p:last-child,
dl > p:last-child {
margin-bottom: 0px;
}