Project:TWikifilter
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Status:active» fixed

Thank you for the patch.

#2

Status:fixed» closed (fixed)

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

nobody click here