X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Ftexte_mini.php;fp=www%2Fecrire%2Finc%2Ftexte_mini.php;h=b0aab8a33ab9d19f54755b577e08f4009fd63f67;hp=f3c2429dc1336e56a3a0db7a9d92a4382bd2aa4f;hb=d18fcb8f27a4016e3fa7b50a9b2255d529dca543;hpb=e847eea4a82a7396dd0abf860f9b30d654f38629 diff --git a/www/ecrire/inc/texte_mini.php b/www/ecrire/inc/texte_mini.php index f3c2429..b0aab8a 100644 --- a/www/ecrire/inc/texte_mini.php +++ b/www/ecrire/inc/texte_mini.php @@ -75,12 +75,8 @@ function code_echappement($rempl, $source='', $no_transform=false, $mode=NULL) { $return .= "<$mode class=\"base64$source\" title=\"$base64\">"; } - return $return - . ((!$no_transform AND $mode == 'div') - ? "\n\n" - : '' - ); -; + return $return; + } @@ -156,7 +152,7 @@ function traiter_echap_math_dist($regs) { return $t; } -define('_PROTEGE_BLOCS', ',<(html|code|cadre|frame|script|math)(\s[^>]*)?>(.*),UimsS'); +define('_PROTEGE_BLOCS', ',<(html|code|cadre|frame|script)(\s[^>]*)?>(.*),UimsS'); // - pour $source voir commentaire infra (echappe_retour) // - pour $no_transform voir le filtre post_autobr dans inc/filtres