Skip to content

Commit ac3ad1e

Browse files
committed
Fix for removed spaces in certain \if \else \endif constructs
1 parent f8c32f9 commit ac3ad1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commentscan.l

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,7 @@ static bool handleElseIf(yyscan_t yyscanner,const QCString &, const QCStringList
24172417
else
24182418
{
24192419
yyextra->guardType = yyextra->enabledSectionFound ? Guard_Skip : Guard_If;
2420+
yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd;
24202421
BEGIN(GuardParam);
24212422
}
24222423
return FALSE;
@@ -2432,6 +2433,7 @@ static bool handleElse(yyscan_t yyscanner,const QCString &, const QCStringList &
24322433
}
24332434
else
24342435
{
2436+
yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd;
24352437
BEGIN( SkipGuardedSection );
24362438
}
24372439
return FALSE;

0 commit comments

Comments
 (0)