Closed (fixed)
Project:
TWikifilter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 09:58 UTC
Updated:
13 Apr 2009 at 20:10 UTC
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
Comment #1
mradcliffeThank you for the patch.