Changeset 58868 in spip-zone


Ignore:
Timestamp:
Feb 27, 2012, 8:54:36 AM (8 years ago)
Author:
fil@…
Message:

cas de l'ecriture '<br>\n' qui ne doit pas donner deux BR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/textwheel/wheels/spip/spip.php

    r58842 r58868  
    5757
    5858        $t = str_replace(_AUTOBR."\n".replace_br(), replace_br(), $t);
     59        $t = str_replace(_AUTOBR."\n"."<br", "<br", $t);
     60        $reg = ',(<br\b[^>]*>\s*)'.preg_quote(_AUTOBR."\n", ',').",S";
     61
     62        $t = preg_replace($reg, "\1", $t);
    5963
    6064        return $t;
Note: See TracChangeset for help on using the changeset viewer.