summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-06-10 09:13:43 (GMT)
committerGitHub <noreply@github.com>2018-06-10 09:13:43 (GMT)
commit55735feae7530d1650b95f96d33448d64076f476 (patch)
treef394332bbc3704de00aa3ca58f34e860637e039f /templates
parent217984ec2ace85e4e6ba6e9d348e0657938cba79 (diff)
parented86c707318c1cb005702ef88dbdaa3a2bee5581 (diff)
downloadDoxygen-55735feae7530d1650b95f96d33448d64076f476.zip
Doxygen-55735feae7530d1650b95f96d33448d64076f476.tar.gz
Doxygen-55735feae7530d1650b95f96d33448d64076f476.tar.bz2
Merge pull request #742 from albert-github/feature/bug_latex_table_code
Problem with code inside a Doxy table in LaTeX
Diffstat (limited to 'templates')
-rw-r--r--templates/latex/doxygen.sty14
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index bee23c5..51e369b 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -97,7 +97,7 @@
}
% Used by @code ... @endcode
-\newenvironment{DoxyCode}{%
+\newenvironment{DoxyCode}[1]{%
\par%
\scriptsize%
\normalfont\ttfamily%
@@ -106,7 +106,13 @@
\settowidth{\CodeWidthChar}{?}%
\settoheight{\CodeHeightChar}{?}%
\setlength{\parskip}{0ex plus 0ex minus 0ex}%
- {\lccode`~32 \lowercase{\global\let~}\NiceSpace}\obeyspaces%
+ \ifthenelse{\equal{#1}{0}}
+ {
+ {\lccode`~32 \lowercase{\global\let~}\NiceSpace}\obeyspaces%
+ }
+ {
+ {\lccode`~32 \lowercase{\global\let~}}\obeyspaces%
+ }
}{%
\normalfont%
@@ -128,8 +134,8 @@
\fi
% Used by @example, @include, @includelineno and @dontinclude
-\newenvironment{DoxyCodeInclude}{%
- \DoxyCode%
+\newenvironment{DoxyCodeInclude}[1]{%
+ \DoxyCode{#1}%
}{%
\endDoxyCode%
}