summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-05-30 19:34:27 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-05-30 19:34:27 (GMT)
commitc03d5d1cbd30613a334e31e4766644bf8382047c (patch)
treec0d98d5a335f025e31ebca7e366a0bb6e80914fe
parent5e056236c9ef3b3675d014cab43480700027d60b (diff)
parenta51cf08035334617612ee81038d26c17306aa53a (diff)
downloadDoxygen-c03d5d1cbd30613a334e31e4766644bf8382047c.zip
Doxygen-c03d5d1cbd30613a334e31e4766644bf8382047c.tar.gz
Doxygen-c03d5d1cbd30613a334e31e4766644bf8382047c.tar.bz2
Merge branch 'bug684324'
-rw-r--r--src/commentscan.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index ef70dfd..b12dd3d 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -171,7 +171,7 @@ static DocCmdMap docCmdMap[] =
{ "relatedalso", &handleRelatedAlso, TRUE },
{ "relatesalso", &handleRelatedAlso, TRUE },
{ "refitem", &handleRefItem, TRUE },
- { "cite", &handleCite, TRUE },
+ { "cite", &handleCite, FALSE },
{ "subpage", &handleSubpage, TRUE },
{ "section", &handleSection, TRUE },
{ "subsection", &handleSection, TRUE },
@@ -2449,6 +2449,11 @@ static bool handleAnchor(const QCString &s)
static bool handleCite(const QCString &s)
{
+ if (g_spaceBeforeCmd)
+ {
+ addOutput(' ');
+ g_spaceBeforeCmd=FALSE;
+ }
addOutput("@"+s+" ");
BEGIN(CiteLabel);
return FALSE;