Page 1 of 1

blogpdf plugin - bug fix

Posted: Thu Nov 03, 2005 2:19 am
by theseus
I have noticed that when you use the blogpdf plugin it runs all the paragraphs together so that your blog looks like one big paragraph.

Would it be possible to have it stick a blank line between each paragraph. In HTML it would be the equivalent of adding a

Code: Select all

<p>
between the paragraphs.

Garvin, I think that that would make this plugin about done except for pictures, which I am sure is a major rewrite, and tweaking to make it work with new versions of Serendipity.

What do you think? Thanks!

Re: blogpdf plugin - bug fix

Posted: Thu Nov 03, 2005 10:34 am
by garvinhicking
The BlogPDF plugin should recognize linebreaks if you entered those as "\n" (carriage return) in your entries, and not just with <p> or <br /> tags.

This means this entry should properly wrap:

Code: Select all

<p>My entry</p>
<p>With some tags</p>
While this entry won't:

Code: Select all

<p>My entry</p><p>With some tags</p>
Can you check that in your entries, if they contain such a linebreak?

PDF does not know about "<p>", they only know "\n". We could transform "</p>" and "<br />" into "\n", but this would double the linebreaks for 99% of how other people usually write entries.

Best regards,
Garvin

Posted: Fri Nov 04, 2005 2:18 pm
by Guest
I know that they don't have \n in them, since it did double my lines... Thanks for explaining!

Posted: Fri Nov 04, 2005 2:45 pm
by garvinhicking
If that doubled your lines it might have been because the nl2br markup plugin was maybe installed twice?

Regards,
Garvin