diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php index 3533e282df4c7d293d1b2f6cd620c80000100209..e5edcf7a9476965d84380894a39c6b408e13f196 100644 --- a/ecrire/inc/filtres.php +++ b/ecrire/inc/filtres.php @@ -1209,40 +1209,6 @@ function PtoBR($texte) { return preg_replace('@^\s*<br />@S' . $u, '', $texte); } - -/** - * Assure qu'un texte ne vas pas déborder d'un bloc - * par la faute d'un mot trop long (souvent des URLs) - * - * Ne devrait plus être utilisé et fait directement en CSS par un style - * `word-wrap:break-word;` - * - * @note - * Pour assurer la compatibilité du filtre, on encapsule le contenu par - * un `div` ou `span` portant ce style CSS inline. - * - * @filtre - * @link https://www.spip.net/4298 - * @link http://www.alsacreations.com/tuto/lire/1038-gerer-debordement-contenu-css.html - * @deprecated 3.1 - * @see Utiliser le style CSS `word-wrap:break-word;` - * - * @param string $texte texte - * @return string texte encadré du style CSS - */ -function lignes_longues($texte) { - trigger_deprecation('spip', '4.2', 'Using function or filter "%s" is deprecated, use CSS instead'); - - if (!strlen(trim($texte))) { - return $texte; - } - include_spip('inc/texte'); - $tag = preg_match(',</?(' . _BALISES_BLOCS . ')[>[:space:]],iS', $texte) ? - 'div' : 'span'; - - return "<$tag style='word-wrap:break-word;'>$texte</$tag>"; -} - /** * Passe un texte en majuscules, y compris les accents, en HTML *