diff options
author | albert-github <albert.tests@gmail.com> | 2018-07-12 12:19:00 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-07-12 12:19:00 (GMT) |
commit | 858d65a9cd7b9b7cf71da01098f47d583b3322f5 (patch) | |
tree | 965217503677442e224e80549bee3d0aea3a7857 /templates/latex/doxygen.sty | |
parent | 5b735d5118581e3bca686f79de341b8b2e76691f (diff) | |
parent | 56c60e84e6dd6d7e4e7774be24d1402782fd3230 (diff) | |
download | Doxygen-858d65a9cd7b9b7cf71da01098f47d583b3322f5.zip Doxygen-858d65a9cd7b9b7cf71da01098f47d583b3322f5.tar.gz Doxygen-858d65a9cd7b9b7cf71da01098f47d583b3322f5.tar.bz2 |
Merge branch 'feature/bug_tableofcontents_latex' of https://github.com/albert-github/doxygen into feature/bug_tableofcontents_latex
Diffstat (limited to 'templates/latex/doxygen.sty')
-rw-r--r-- | templates/latex/doxygen.sty | 14 |
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% } |