Re: Proposal to Ignore Initial Blank Lines in Story Files

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Why not just make this a plugin that uses the story callback to remove 
initial blank lines in the body?

/will


On Thu, 6 Apr 2006, Kris Kowal wrote:
> 
> 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&kid=110944&bid=241720&dat=121642
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>


-------------------------------------------------------
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&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.