summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-05-30 19:31:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-05-30 19:31:57 (GMT)
commita51cf08035334617612ee81038d26c17306aa53a (patch)
tree055e78a1d3fcbd866c31f17074b35bd19c222857 /src/commentscan.l
parent1941e88efd5d0f1f049b50eb258dff2a19e739d9 (diff)
downloadDoxygen-a51cf08035334617612ee81038d26c17306aa53a.zip
Doxygen-a51cf08035334617612ee81038d26c17306aa53a.tar.gz
Doxygen-a51cf08035334617612ee81038d26c17306aa53a.tar.bz2
Bug 684324 - Strange behavior when placing cite within brief.
Bug 700788 - support @cite within brief description.
Diffstat (limited to 'src/commentscan.l')
-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;