Spacing when nesting directives.
The spacing when nesting a .. code directive inside a warning or a note is not rendered correctly.
See for example the end of the first warning in https://pytorch.org/docs/stable/generated/torch.qr.html

cc: @mattip
As far as I can tell, the problem is that either the div.admonition class needs a padding-bottom: 1px; value to clearly delineate where the code box ends.
@brianjo thoughts?
#135 did not fix this and probably should be backed out. I am not sure how to get the padding-bottom into the div.admonition.
Edit #138 was meant to fix this, but I seem to have forgotten that part of #135.
This seems to be fixed on latest master, although there probably is still too much padding around the <pre>.
It still does not render well in my browser:

The difference I see is that now the background is in a slightly darker grey, and the formulae in double backticks do render as if they had both a rectangle around each letter and a large rectangle (of a slightly lighter grey) around the whole formula.
The background color is a different issue #130. This one is about the overlap between the bottom-most <pre> containing Q,R = torch.linalg.qr(A, mode="complete") and the surrounding WARNING admonition, which now line up.
Yes, sorry, I wrote that in both the issues. All I meant to write here is that the spacing between the end of .. warning:: and the end of .. code:: is still not rendered correctly.
What would you consider to be correct? The bottom of the ..code:: directive previously extended past the surrounding warning:: directive and no longer does.
Oh, In my head correct would be to leave an space the size of that just before ..code:: so that it does not look crammed. this space would have the color of the background of ..warning::. Sorry for the misunderstanding.
Thanks for the clarification. Makes sense.