# HG changeset patch # User Paul Boddie # Date 1353801706 -3600 # Node ID 589f0c25922890c8f36c05de6189b99b4d44f582 # Parent 9c2d3c3d29ed0b3078dc404a8cb11a1e0ce8c702 Handle fragments without any real content. diff -r 9c2d3c3d29ed -r 589f0c259228 MoinSupport.py --- a/MoinSupport.py Thu Nov 22 23:05:50 2012 +0100 +++ b/MoinSupport.py Sun Nov 25 01:01:46 2012 +0100 @@ -268,7 +268,11 @@ if body.startswith("#!"): body = body[2:] - arguments, body = body.split("\n", 1) + try: + arguments, body = body.split("\n", 1) + except ValueError: + arguments = body + body = "" # Get any parser/format declaration.