high level header to filtered

m.fu - March 28, 2009 - 09:58
Project:TWikifilter
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have plenty of ---+ header in the pages I want to port to drupal. However headers like that are not recognized, header only starts at ---++.

I applied the following patch to solve my problem:

Index: twikifilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/twikifilter/Attic/twikifilter.module,v
retrieving revision 1.1.2.1.2.12
diff -u -r1.1.2.1.2.12 twikifilter.module
--- twikifilter.module 18 Mar 2009 23:30:48 -0000 1.1.2.1.2.12
+++ twikifilter.module 28 Mar 2009 09:36:35 -0000
@@ -247,7 +247,7 @@
                                  $new .= preg_replace("/^(---)$/","<HR>\n",$line);
                                  $curline['type'] = 'sep';
                              }
-                             else if (preg_match("/^---[+]{2,}/",$line) > 0 ) // we found a header!
+                            else if (preg_match("/^---[+]{1,}/",$line) > 0 ) // we found a header!
                              {
                                  $headerlevel = preg_match_all("/[+]/",$line,$dummy); // a header level -> <hX>

#1

mradcliffe - March 30, 2009 - 20:00
Status:active» fixed

Thank you for the patch.

#2

System Message - April 13, 2009 - 20:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.