Proposal to Ignore Initial Blank Lines in Story Files
"Kris Kowal" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Fellow Open Sourcerers, Since I've manually made this edit twice now, I figure it would be worth a shot to contribute it. My particular configuration requires that the pyblosxom story reader ignore initial blank lines in story files. Assuming that the presence of a heading is an invariant in story files, it would cause no harm to universally ignore initial blank lines. So, here's a patch if you can use it. Kris Kowal. On Revision 878 900a901,906 > > # strip blank lines from the top of the file > while lines and not lines[0].strip(): > lines.pop(0) > > # read the title from the first non-blank line ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642