Changeset 75917 in spip-zone


Ignore:
Timestamp:
Sep 16, 2013, 6:23:46 PM (6 years ago)
Author:
maieul@…
Message:

un remplacement correcte, qui conserve les retours lignes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/saisies/inc/saisies.php

    r75916 r75917  
    253253 */
    254254function saisies_aplatir_chaine($chaine){
    255     return preg_replace("#(?:^|\n)(\*(?:.*)|/\*)\n#i","",$chaine);
     255    return trim(preg_replace("#(?:^|\n)(\*(?:.*)|/\*)\n#i","\n",$chaine));
    256256    }
    257257/*
Note: See TracChangeset for help on using the changeset viewer.