summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-26 15:54:53 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-26 15:54:53 (GMT)
commited86c707318c1cb005702ef88dbdaa3a2bee5581 (patch)
tree99838f3b8b9400c81e572daf3e4c2c088c9824f2 /templates
parent63696c08425fc1662c5e76280e3cc74fb3769d80 (diff)
downloadDoxygen-ed86c707318c1cb005702ef88dbdaa3a2bee5581.zip
Doxygen-ed86c707318c1cb005702ef88dbdaa3a2bee5581.tar.gz
Doxygen-ed86c707318c1cb005702ef88dbdaa3a2bee5581.tar.bz2
Problem with code inside a Doxy table in LaTeX
When code is used inside a problem occurs with \discretionary - Inside a table \discretionary is disabled when code is used. - \newline should not be appended to a code line (is already implicitly done by the command).
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%
}