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>
 

Comments

mradcliffe’s picture

Status: Active » Fixed

Thank you for the patch.

Status: Fixed » Closed (fixed)

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