From c62013e1c331557bad8361cbfd57118594b51736 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou <pitrou@free.fr> Date: Tue, 9 Sep 2003 00:06:40 +0000 Subject: [PATCH] raccourci "--" --- ecrire/inc_texte.php3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index d46fcc1948..595e3e02a6 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -732,6 +732,7 @@ function traiter_raccourcis($letexte, $les_echap = false, $traiter_les_notes = ' permet de gagner un peu de temps chez les hergeurs nazes */ $letexte = ereg_replace("(^|\n)(-{4,}|_{4,})", "@@SPIP_ligne_horizontale@@", $letexte); $letexte = ereg_replace("^- *", "$puce ", $letexte); + $letexte = ereg_replace("\n-- *", "\n<br />&mdash ",$letexte); $letexte = ereg_replace("\n- *", "\n<br />$puce ",$letexte); $letexte = ereg_replace("\n_ +", "\n<br />",$letexte); $letexte = ereg_replace("(( *)\n){2,}", "\n<p>", $letexte); @@ -751,6 +752,7 @@ function traiter_raccourcis($letexte, $les_echap = false, $traiter_les_notes = ' $cherche1 = array( /* 0 */ "/(^|\n)(----+|____+)/", /* 1 */ "/^- */", + /* 1bis */ "/\n-- */", /* 2 */ "/\n- */", /* 3 */ "/\n_ +/", /* 4 */ "/(( *)\n){2,}/", @@ -770,6 +772,7 @@ function traiter_raccourcis($letexte, $les_echap = false, $traiter_les_notes = ' $remplace1 = array( /* 0 */ "@@SPIP_ligne_horizontale@@", /* 1 */ "$puce ", + /* 1bis */ "\n<br />— ", /* 2 */ "\n<br />$puce ", /* 3 */ "\n<br />", /* 4 */ "\n<p>", -- GitLab