ApproveChangesSupport.py | raw changeset files shortlog |
1.1 --- a/ApproveChangesSupport.py Sat Oct 15 20:40:57 2011 +0200 1.2 +++ b/ApproveChangesSupport.py Sat Oct 15 21:58:55 2011 +0200 1.3 @@ -126,7 +126,7 @@ 1.4 1.5 "Add to the page 'body' the given 'directives'." 1.6 1.7 - return "\n".join(directives + [body]) 1.8 + return "\n".join([directive for directive in directives if directive] + [body]) 1.9 1.10 def remove_directives(body, names): 1.11