From ac3ad1e58da96a28cb09cb9fab5b34837bc1c292 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 7 Jan 2020 21:06:57 +0100 Subject: Fix for removed spaces in certain \if \else \endif constructs --- src/commentscan.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commentscan.l b/src/commentscan.l index 02117c2..fbcd089 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -2417,6 +2417,7 @@ static bool handleElseIf(yyscan_t yyscanner,const QCString &, const QCStringList else { yyextra->guardType = yyextra->enabledSectionFound ? Guard_Skip : Guard_If; + yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd; BEGIN(GuardParam); } return FALSE; @@ -2432,6 +2433,7 @@ static bool handleElse(yyscan_t yyscanner,const QCString &, const QCStringList & } else { + yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd; BEGIN( SkipGuardedSection ); } return FALSE; -- cgit v0.12