From a1b3f7b1157b8e7b392bfcd6c6452c664bf5a7c2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 25 Jul 2015 17:44:16 +0200 Subject: Bug 752658 - XML empty in python Problem comes from the fact that the last argument has a default value and in this case the routine argListToString is mot called as it is done in case of ')' after an argument without default value (see section "FunctionParams"). --- src/pyscanner.l | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyscanner.l b/src/pyscanner.l index 8332a36..8cbfc6c 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -963,7 +963,9 @@ STARTDOCSYMS "##" { current->argList->getLast()->defval=g_defVal.stripWhiteSpace(); } - BEGIN(FunctionParams); + if (*yytext == ')') + current->args = argListToString(current->argList); + BEGIN(FunctionParams); } else // continue { -- cgit v0.12