From 1aafbbc97bdb643cae8be036f2b9ab569ca7f15e Mon Sep 17 00:00:00 2001 From: Alastair D'Silva Date: Tue, 25 Jul 2017 14:56:36 +1000 Subject: Call endMemberItem consistently. When generating man pages, enums erroneously output their description on the same line as the definition, with a trailing '"'. This is due to endMemberItem being called after the member description is emitted, rather than before, as it is elsewhere. This patch moves the call to the same place where it is called elsewhere. Bad output: enum foo { FOO = 0 } Description. " Good output: enum foo { FOO = 0 } Description. Signed-off-by: Alastair D'Silva --- src/memberlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memberlist.cpp b/src/memberlist.cpp index 5349030..e19cead 100644 --- a/src/memberlist.cpp +++ b/src/memberlist.cpp @@ -426,6 +426,7 @@ void MemberList::writePlainDeclarations(OutputList &ol, { ol.endDoxyAnchor(md->getOutputFileBase(),md->anchor()); } + ol.endMemberItem(); if (!md->briefDescription().isEmpty() && Config_getBool(BRIEF_MEMBER_DESC)) { DocRoot *rootNode = validatingParseDoc( @@ -452,7 +453,6 @@ void MemberList::writePlainDeclarations(OutputList &ol, } delete rootNode; } - ol.endMemberItem(); ol.endMemberDeclaration(md->anchor(),inheritId); } md->warnIfUndocumented(); -- cgit v0.12