summaryrefslogtreecommitdiffstats
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-21 14:23:04 -0400
committerJonathan Corbet <corbet@lwn.net>2016-08-22 17:35:04 -0400
commitba1377fba7047a86c31981363cbd9e65b1ca2763 (patch)
tree76c75b4eb4ff7851df5f87ad7918124b3b7039b9 /Documentation/conf.py
parent41cff161fe99d1c6a773becc2250a1dc3ac035ff (diff)
docs-rst: Fix an warning when in interactive mode
When XeLaTeX is in interactive mode, it complains that py@noticelength already exists. Rename it and declare it only once to avoid such messages. 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.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 2a02a817b1a0..85e9f16b1d98 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -282,14 +282,14 @@ latex_elements = {
282 \\definecolor{WarningColor}{RGB}{255,204,204} 282 \\definecolor{WarningColor}{RGB}{255,204,204}
283 \\definecolor{AttentionColor}{RGB}{255,255,204} 283 \\definecolor{AttentionColor}{RGB}{255,255,204}
284 \\definecolor{OtherColor}{RGB}{204,204,204} 284 \\definecolor{OtherColor}{RGB}{204,204,204}
285 \\newlength{\\mynoticelength}
285 \\makeatletter\\newenvironment{coloredbox}[1]{% 286 \\makeatletter\\newenvironment{coloredbox}[1]{%
286 \\newlength{\\py@noticelength}
287 \\setlength{\\fboxrule}{1pt} 287 \\setlength{\\fboxrule}{1pt}
288 \\setlength{\\fboxsep}{7pt} 288 \\setlength{\\fboxsep}{7pt}
289 \\setlength{\\py@noticelength}{\\linewidth} 289 \\setlength{\\mynoticelength}{\\linewidth}
290 \\addtolength{\\py@noticelength}{-2\\fboxsep} 290 \\addtolength{\\mynoticelength}{-2\\fboxsep}
291 \\addtolength{\\py@noticelength}{-2\\fboxrule} 291 \\addtolength{\\mynoticelength}{-2\\fboxrule}
292 \\begin{lrbox}{\\@tempboxa}\\begin{minipage}{\\py@noticelength}}{\\end{minipage}\\end{lrbox}% 292 \\begin{lrbox}{\\@tempboxa}\\begin{minipage}{\\mynoticelength}}{\\end{minipage}\\end{lrbox}%
293 \\ifthenelse% 293 \\ifthenelse%
294 {\\equal{\\py@noticetype}{note}}% 294 {\\equal{\\py@noticetype}{note}}%
295 {\\colorbox{NoteColor}{\\usebox{\\@tempboxa}}}% 295 {\\colorbox{NoteColor}{\\usebox{\\@tempboxa}}}%