From c3dccba229db17b14620e26856419068d40b153b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Mon, 21 Jan 2008 15:08:24 +0000
Subject: [PATCH] #212285 by wrwrwr: hr should be treated as a block level tag

---
 modules/filter/filter.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 0d3cf62c5f2f..18f3e39dc77c 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -865,7 +865,7 @@ function _filter_url_trim($text, $length = NULL) {
  */
 function _filter_autop($text) {
   // All block level tags
-  $block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6])';
+  $block = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|p|h[1-6]|hr)';
 
   // Split at <pre>, <script>, <style> and </pre>, </script>, </style> tags.
   // We don't apply any processing to the contents of these tags to avoid messing
-- 
GitLab