changeset 2553:eb3297891475

macro.Action:correct splitting of action and args (filling up)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 23 Jul 2007 22:25:27 +0200
parents 88ea1324d55e
children a40bcb6fce42 d1658035d233
files MoinMoin/macro/Action.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/Action.py	Fri Jul 20 16:26:40 2007 +0200
+++ b/MoinMoin/macro/Action.py	Mon Jul 23 22:25:27 2007 +0200
@@ -75,7 +75,7 @@
         text = self.args.get('text', action)
         text = _(text, formatted=False)
         text = wikiutil.escape(text, 1)
-        action, args = action.split('&', 1)
+        action, args = (action.split('&') + [None] * 2)[:2]
         if action in self.getValidActions():
             # Create link
             page = self.macro.formatter.page