Re: Re: #927 [Csd->Opn]: two bugs with paragraphs
| From: | Paul M Jones | Date: | Wed, 03 Mar 2004 17:32:37 +0000 |
| Subject: | Re: Re: #927 [Csd->Opn]: two bugs with paragraphs | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26065@lists.php.net to get a copy of this message | ||
On Mar 3, 2004, at 10:20 AM, Paul M Jones wrote:
Yes, you're right, it is a separate bug and not related to the text-at-beginning-or-end problem I described earlier. I think it's related to some of the block-type rules capturing and replacing the newline before the block (whether list, table, or whatever). Will take a look and patch the patched patch when I fix it. ;-)Hotfix: In Text/Wiki/Rule/list.php, line 226 (the end of the process() method), change from ...
// we're done! send back the replacement text.
return $return;
... to:
// we're done! send back the replacement text.
return "\n" . $return;
The list rule regex captures a newline but does not include it in the replacement text. This is where the newline disappears, thus screwing up the paragraph rule. I will roll a new release by the weekend with this fix and some other tweaks as well (like standardizing on macro notations).
--
Paul M. Jones
Savant: the simple alternative to Smarty.
http://phpsavant.com/