From a51cf08035334617612ee81038d26c17306aa53a Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Thu, 30 May 2013 21:31:57 +0200 Subject: Bug 684324 - Strange behavior when placing cite within brief. Bug 700788 - support @cite within brief description. --- src/commentscan.l | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v0.12