Improved nl2br plugin
For a longe time, people complained that the Serendipity NL2BR plugin (which converts newlines to proper HTML linebreaks) occasionally converted too many newlines. For example, within "code" or "pre" or "table" tags it is not desired to have linebreaks.
For the same amount of long time, the Serendipity developers did not really have a chance to dig into the regular expression magic that was required to fix this. Luckily for us, the awesome Brendon K came around and improved the plugin for us. :-)
We have now committed his code into the official Serendipity SVN trunk, so that it will be contained in tomorrows Snapshots as well as the final Serendipity 1.1 version.
We hope that this will be useful for you, and many thanks to Brendon - we hope there will be many other cool patches you can send to us. :-)
I'm curious to find out whether or not this prevents the "br" tags from being inserted inside of lists ("ul", "ol", "dl") as well -- since that's been more of a pain for me than "code" or "pre" tags.
Thus you need to fetch the recent snapshot or fetch the plugin from that snapshot or SVN.
And, yes, you can configure the list of tags. Thus you can include ul, ol and dl in the list of non-nl2br-able tables.
HTH,
Garvin


