Skip to content

Commit eefa19f

Browse files
committed
issue #10220 \copydoc for file dox does not copy brief
Check that the brief / details documentation section are really empty before deciding about where to place the result of the `\copydoc`
1 parent e2bc7d2 commit eefa19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commentscan.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ static bool handleCopyDetails(yyscan_t yyscanner,const QCString &, const StringV
32603260
static bool handleCopyDoc(yyscan_t yyscanner,const QCString &, const StringVector &)
32613261
{
32623262
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
3263-
if (yyextra->current->brief.isEmpty() && yyextra->current->doc.isEmpty())
3263+
if (yyextra->current->brief.stripWhiteSpace().isEmpty() && yyextra->current->doc.stripWhiteSpace().isEmpty())
32643264
{ // if we don't have a brief or detailed description yet,
32653265
// then the @copybrief should end up in the brief description.
32663266
// otherwise it will be copied inline (see bug691315 & bug700788)

0 commit comments

Comments
 (0)