Fix edge case in kwarg parsing for template
This commit is contained in:
parent
1746aaf06b
commit
ef13565b76
1 changed files with 18 additions and 17 deletions
|
|
@ -1664,6 +1664,7 @@ def _process_callable(caller, goto, goto_callables, raw_string,
|
|||
gotokwargs = match.group("kwargs") or ""
|
||||
if gotofunc in goto_callables:
|
||||
for kwarg in gotokwargs.split(","):
|
||||
if kwarg and "=" in kwarg:
|
||||
key, value = [part.strip() for part in kwarg.split("=", 1)]
|
||||
if key in ("evmenu_goto", "evmenu_gotomap", "_current_nodename",
|
||||
"evmenu_current_nodename", "evmenu_goto_callables"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue