Skip to content

Commit

Permalink
Move stripWhiteSpace to the end of expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Mar 31, 2024
1 parent d4535fa commit 8dd8173
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pre.l
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ WSopt [ \t\r]*
QCString result=def->isPredefined && !def->expandAsDefined ?
def->definition :
expandMacro(yyscanner,yytext);
outputString(yyscanner,result);
outputString(yyscanner,result.stripWhiteSpace());
}
else
{
Expand Down Expand Up @@ -2983,7 +2983,6 @@ static bool expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in
i=p+l;
}
}
expr = expr.stripWhiteSpace();
//printf("<expandExpression(expr='%s',rest='%s',pos=%d,level=%d)\n",qPrint(expr),rest ? qPrint(*rest) : "", pos,level);
return TRUE;
}
Expand Down

0 comments on commit 8dd8173

Please sign in to comment.