Changeset 2205 in spip-zone


Ignore:
Timestamp:
Mar 2, 2006, 10:34:02 PM (15 years ago)
Author:
pierre.andrews@…
Message:

bug: on ne fait la recherche que si on n'a rien trouve encore (Marc W Lebas)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bbcode_propre/bbcode_propre.php

    r2194 r2205  
    3030  $chaine = preg_replace("!\\[color=(.+)\\](.+)\\[/color\\]!Umi","<html><span style=\"color:\\1\">\\2</span></html>",$chaine);
    3131  $chaine = preg_replace("!\\[size=(.+)\\](.+)\\[/size\\]!Umi","<html><span style=\"font-size:\\1px\">\\2</span></html>",$chaine);
    32   $chaine = preg_replace("!\[list\](.+)\[/list\]!Umi","<html><ul> $1 </ul></html>",$chaine);
    33   $chaine = preg_replace("!\[list=1\](.+)\[/list\]!Umi","<html><ol> $1 </ol></html>",$chaine); 
    34   $chaine = preg_replace("!\[list=a\](.+)\[/list\]!Umi","<html><ol type='a'> $1 </ol></html>",$chaine);
    35   $chaine = preg_replace("!\[\*\](.+)(?=(\[\*\]|</ul>))!Umi","<li>$1</li>",$chaine);
     32  $chaine = preg_replace("!\[list\](.+)\[/list\]!Umi","<html><ul> \\1 </ul></html>",$chaine);
     33  $chaine = preg_replace("!\[list=1\](.+)\[/list\]!Umi","<html><ol> \\1 </ol></html>",$chaine); 
     34  $chaine = preg_replace("!\[list=a\](.+)\[/list\]!Umi","<html><ol type='a'> \\1 </ol></html>",$chaine);
     35  $chaine = preg_replace("!\[\*\](.+)(?=(\[\*\]|</ul>))!Umi","<li>\\1</li>",$chaine);
    3636  $chaine = str_replace("[b]","<html><b>",$chaine);
    3737  $chaine = str_replace("[/b]","</b></html>",$chaine);
Note: See TracChangeset for help on using the changeset viewer.