From 4908c39f8bd18556f868bcc70d3f2f6ff0296c8e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 7 Sep 2019 13:57:24 +0200 Subject: issue #6715: Errorneous matching of the immediately following block command after @ref --- src/commentscan.l | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commentscan.l b/src/commentscan.l index a495c5e..027f000 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -2720,6 +2720,11 @@ static bool handleCite(const QCString &s, const QCStringList &) static bool handleFormatBlock(const QCString &s, const QCStringList &optList) { + if (!g_spaceBeforeCmd.isEmpty()) + { + addOutput(g_spaceBeforeCmd); + g_spaceBeforeCmd.resize(0); + } if (optList.isEmpty()) { addOutput("@"+s+" "); -- cgit v0.12