|
From: <var...@us...> - 2008-08-29 15:16:11
|
Revision: 6223
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6223&view=rev
Author: vargenau
Date: 2008-08-29 15:16:20 +0000 (Fri, 29 Aug 2008)
Log Message:
-----------
Allow Wikicreole syntax with '='s at the end
Modified Paths:
--------------
trunk/lib/plugin/CreateToc.php
Modified: trunk/lib/plugin/CreateToc.php
===================================================================
--- trunk/lib/plugin/CreateToc.php 2008-08-29 13:52:09 UTC (rev 6222)
+++ trunk/lib/plugin/CreateToc.php 2008-08-29 15:16:20 UTC (rev 6223)
@@ -259,6 +259,11 @@
$this->_tocCounter($tocCounter, $level);
if (!strstr($content[$i],'#[')) {
$s = trim($match[2]);
+ // If it is Wikicreole syntax, remove '='s at the end
+ if (string_starts_with($match[1], "=")) {
+ $s = trim($s, "=");
+ $s = trim($s);
+ }
$anchor = $this->_nextAnchor($s);
$manchor = MangleXmlIdentifier($anchor);
$texts = $s;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|