Package: drupal
Version: 4.5.8-1.1
Followup-For: Bug #374584

Applying the following patch almost fixes the issue, as well as possibly Bug
#373963.

After applying the patch, all affected nodes must be reformatted. This can be
done simply by editing and submitting the node.

You'll have to forgive me, I'm new to this, but this patch applies to
filter.module in the filters directory.

--- filter.module       2006-06-29 23:59:45.000000000 -0500
+++ filter.module.new   2006-06-29 23:50:24.000000000 -0500
@@ -942,8 +942,8 @@
 
   $text = preg_replace('|\n*$|', '', $text) ."\n\n"; // just to make things a 
little easier, pad the end
   $text = preg_replace('|<br />\s*<br />|', "\n\n", $text);
-  $text = preg_replace('!(<'. $block .'[^>]*>)!', "\n$1", $text); // Space 
things out a little
-  $text = preg_replace('!(</'. $block .'>)!', "$1\n\n", $text); // Space 
things out a little
+  $text = preg_replace('!(<'. $block .'[^>]*>)!', "\n$1", $chunk); // Space 
things out a little
+  $text = preg_replace('!(</'. $block .'>)!', "$1\n\n", $chunk); // Space 
things out a little
   $text = preg_replace("/\n\n+/", "\n\n", $text); // take care of duplicates
   $text = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $text); // 
make paragraphs, including one at the end
   $text = preg_replace('|<p>\s*?</p>|', '', $text); // under certain strange 
conditions it could create a P of entirely whitespace


-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to