On Sun, 13 Oct 2013 21:55:49 -0500
Terry Brown <[email protected]> wrote:
> if lines[0].startswith('### '):
> del lines[0]
> if lines[0].strip():
> lines[0:0] = [""]
That looks like it should be
if lines and lines[0].startswith('### '):
del lines[0]
if lines and lines[0].strip():
lines[0:0] = [""]
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.