summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-09-03 10:49:16 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-09-03 10:49:16 (GMT)
commit5be9f2b42ec02735712aa68198da1d5056d08ef6 (patch)
tree6062b8fef5712d57074c9e00d913172353356691
parent72591fd5ecc2aef1c6809fb8ce405f2326ec4ae2 (diff)
downloadDoxygen-5be9f2b42ec02735712aa68198da1d5056d08ef6.zip
Doxygen-5be9f2b42ec02735712aa68198da1d5056d08ef6.tar.gz
Doxygen-5be9f2b42ec02735712aa68198da1d5056d08ef6.tar.bz2
Warning about end of list in brief description after alias `^^` replacement
With the alias: ``` ALIASES += "sbl_add_package_main_class{2}=\brief \1 ^^ \2" ``` and the comment: ``` \sbl_add_package_main_class{Defines, \details dihedrals} ``` we will get the replacement: ``` \brief Defines \ilinebr \details dihedrals ``` but this leads to a number of warnings like: ``` warning: End of list marker found without any preceding list items ``` As the end of the brief description is here `\ilinebr` this is replaced in the definition by `\ilinebr.` (so with a `.`). We first have to strip the aritficial newlines at (the beginning and) the end end of the brief description before adding the `.`. (Found as side effect of https://stackexchange.com/filters/57710/doxygen).
-rw-r--r--src/definition.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 3ed331c..7874a5e 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -613,6 +613,8 @@ void DefinitionImpl::_setBriefDescription(const char *b,const char *briefFile,in
outputLanguage!="Korean";
QCString brief = b;
brief = brief.stripWhiteSpace();
+ brief = stripLeadingAndTrailingEmptyLines(brief,briefLine);
+ brief = brief.stripWhiteSpace();
if (brief.isEmpty()) return;
uint bl = brief.length();
if (bl>0 && needsDot) // add punctuation if needed