summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-06-08 13:09:17 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-06-08 13:09:17 (GMT)
commit0937e9ce7d04cbb701f58aaa724866a9f213822f (patch)
treebea66384921efecdd73433cf2201a907b0e120b0
parente773e6cb9e117621e06fb81098d33417e8a97720 (diff)
downloadDoxygen-0937e9ce7d04cbb701f58aaa724866a9f213822f.zip
Doxygen-0937e9ce7d04cbb701f58aaa724866a9f213822f.tar.gz
Doxygen-0937e9ce7d04cbb701f58aaa724866a9f213822f.tar.bz2
No space when replacing `\copydoc` by `\copydetails`
In case we have something like (taken loosely from issue #4554): ``` - \subpage id_201201031218 \copydoc id_201201031218 ``` this would be translated into: ``` - @subpage id_201201031218\copydetails id_201201031218] ``` and subsequently the first word of the `\copydetails` part is placed directly to the `id_201201031218` resulting in an unknown id like `id_201201031218this` (This actual case it doesn't make much sense to use a `\copydoc` but this can happen in other cases as well).
-rw-r--r--src/commentscan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index eb1629e..e75d023 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2298,7 +2298,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
if (*yytext=='\n') yyLineNr++;
addOutput('\n');
setOutput(OutputDoc);
- addOutput("\\copydetails ");
+ addOutput(" \\copydetails ");
addOutput(g_copyDocArg);
addOutput("\n");
BEGIN(Comment);