Author: james@rezo.net
Date: Sun Aug 20 17:42:59 2006
New Revision: 4762
Log:
un gros hack sale ...
Modified:
_plugins_branche_stable_/_spip_1_9_0_/ancres_intertitres/ancres_intertitres.php
Modified: _plugins_branche_stable_/_spip_1_9_0_/ancres_intertitres/ancres_intertitres.php
--- _plugins_branche_stable_/_spip_1_9_0_/ancres_intertitres/ancres_intertitres.php (original)
+++ _plugins_branche_stable_/_spip_1_9_0_/ancres_intertitres/ancres_intertitres.php Sun Aug 20 17:42:59 2006
@@ -3,7 +3,12 @@
define("_LG_ANCRE", 35);
function AncresIntertitres_ancres_intertitres($texte) {
- $regexp = "/{{{[[:space:]]*([\w\s]+)[[:space:]]*}}}/S";
+ $regexp = "/{{{[[:space:]]*(.+)[[:space:]]*}}}/S"; //accepte code et math etc... mais pas les retour à la ligne
+ $texte = preg_replace_callback($regexp,
+ create_function('$matches',
+ 'return AncresIntertitres_remplace_intertitre($matches);'),
+ $texte);
+ $regexp = "/{{{[[:space:]]*([\w\s]+)[[:space:]]*}}}/S"; //accepte les retour à la ligne dans les intertitres mais plus math et code ...
$texte = preg_replace_callback($regexp,
create_function('$matches',
'return AncresIntertitres_remplace_intertitre($matches);'),