summaryrefslogtreecommitdiffstats
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-19 08:49:38 -0400
committerJonathan Corbet <corbet@lwn.net>2016-08-22 17:26:57 -0400
commitaa4e37a3d13679dccf7945dd864375b698cf0df9 (patch)
treee1b0bc7bcfb1d7f1eb8b3afda22afb2125ec0b3e /Documentation/conf.py
parentd565127d120e9b95ba98549c31eab9cec1cbbbc7 (diff)
docs-rst: conf.py: adjust the size of .. note:: tag
While the current implementation works well when using as a paragraph, it doesn't work properly if inside a table. As we have quite a few such cases, fix the logic to take the column size into account. PS.: I took the logic there from the latest version of Sphinx.sty Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r--Documentation/conf.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 88c377d468d0..aaa3f70aafcb 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -282,7 +282,13 @@ latex_elements = {
282 \\definecolor{MyGray}{rgb}{0.80,0.80,0.80} 282 \\definecolor{MyGray}{rgb}{0.80,0.80,0.80}
283 283
284 \\makeatletter\\newenvironment{graybox}{% 284 \\makeatletter\\newenvironment{graybox}{%
285 \\begin{lrbox}{\\@tempboxa}\\begin{minipage}{\\columnwidth}}{\\end{minipage}\\end{lrbox}% 285 \\newlength{\\py@noticelength}
286 \\setlength{\\fboxrule}{1pt}
287 \\setlength{\\fboxsep}{7pt}
288 \\setlength{\\py@noticelength}{\\linewidth}
289 \\addtolength{\\py@noticelength}{-2\\fboxsep}
290 \\addtolength{\\py@noticelength}{-2\\fboxrule}
291 \\begin{lrbox}{\\@tempboxa}\\begin{minipage}{\\py@noticelength}}{\\end{minipage}\\end{lrbox}%
286 \\colorbox{MyGray}{\\usebox{\\@tempboxa}} 292 \\colorbox{MyGray}{\\usebox{\\@tempboxa}}
287 }\\makeatother 293 }\\makeatother
288 294