Mercurial > genshi > mirror
diff genshi/template/markup.py @ 521:dc8646e2e918 stable-0.4.x
Ported [624] to 0.4.x branch.
author | cmlenz |
---|---|
date | Wed, 13 Jun 2007 12:39:10 +0000 |
parents | 97544725bb7f |
children | bb8141898891 |
line wrap: on
line diff
--- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -194,7 +194,7 @@ # number quite right lines = [line.expandtabs() for line in data[1].splitlines()] first = lines[0] - rest = dedent('\n'.join(lines[1:])) + rest = dedent('\n'.join(lines[1:])).rstrip() if first.rstrip().endswith(':') and not rest[0].isspace(): rest = '\n'.join([' ' + line for line in rest.splitlines()])