diff --git a/emails/texte.html b/emails/texte.html index 9fc89fe..80f2492 100644 --- a/emails/texte.html +++ b/emails/texte.html @@ -21,6 +21,7 @@ .bodyContent div a:link, .bodyContent div a:visited {color: #336699;font-weight: normal;text-decoration: underline;} .bodyContent img {display: inline;margin-bottom: 10px;} .bodyContent img.puce {display: inline;margin-bottom: 0;} + hr { height: 1px; margin: 1.5em 0; border: 0; background: #222222; color: #222222; } .spip_code, .spip_cadre {color: #606060;font-family: Courier,"Courier New",monospace;font-size: 1em;} .coloration_code ol {list-style: none;} .spip_logos {float: right;margin-left: 10px;} diff --git a/facteur_fonctions.php b/facteur_fonctions.php index fdfd904..3abf19a 100755 --- a/facteur_fonctions.php +++ b/facteur_fonctions.php @@ -24,6 +24,9 @@ if (!defined("_ECRIRE_INC_VERSION")) return; */ function facteur_email_wrap_to_html($texte_ou_html){ $texte_ou_html = trim($texte_ou_html); + // attention : si pas de contenu on renvoi du vide aussi (mail vide = mail vide) + if (!strlen(trim($texte_ou_html))) + return $texte_ou_html; $contexte = array("sujet"=>"","texte"=>"","intro"=>""); @@ -53,6 +56,10 @@ function facteur_email_wrap_to_html($texte_ou_html){ $contexte['texte'] = trim(implode("\n",$texte_ou_html)); } + // attention : si pas de contenu on renvoi du vide aussi (mail vide = mail vide) + if (!strlen(trim(implode("",$contexte)))) + return ""; + return recuperer_fond("emails/texte",$contexte); } diff --git a/paquet.xml b/paquet.xml index 41e9ec7..17de55c 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@