From 376b6b6222282cb00d175388ba22380c052b8e86 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 29 Jun 2005 09:00:47 +0000
Subject: [PATCH] =?UTF-8?q?les=20navigateurs=20interpretent=20diff=C3=A9re?=
 =?UTF-8?q?mment=20"<a></a>"=20et=20"<a=20/>"=20!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_spip_sax.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecrire/inc_spip_sax.php b/ecrire/inc_spip_sax.php
index 5dcb9e72a0..ab3337650a 100644
--- a/ecrire/inc_spip_sax.php
+++ b/ecrire/inc_spip_sax.php
@@ -69,8 +69,8 @@ function finElement($parser, $name)
   $t = $contenu[$depth];
   $depth = substr($depth, 2);
   $t = ereg_replace("[\n\t ]+$", "\n" . $depth, $t);
-  // fusion <balise></balise> en <balise /> sauf pour textarea qui hallucine!
-  if ($t || ($name == 'textarea'))
+  // fusion <balise></balise> en <balise /> sauf pour qq unes qui hallucinent
+  if ($t || ($name == 'a') || ($name == 'textarea'))
     $res .= ($ouv ? ('<' . $ouv . '>') : '') . $t . "</" . $name . ">";
   else
     $res .= ($ouv ? ('<' . $ouv  . ' />') : ("</" .  $name . ">"));
-- 
GitLab