diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3
index a463e419af3f1d24ee1562fd0afb73fc41ede67a..bb08eb35c504fe0316fd804000dd6c19096ab2e4 100644
--- a/ecrire/inc_texte.php3
+++ b/ecrire/inc_texte.php3
@@ -593,7 +593,7 @@ function traiter_listes ($texte) {
 
 				/// puis les identites (y compris en fin de descente)
 				if ($niveau == $profond && !$change_type) {
-					$ajout .= "</li>";
+					$ajout .= $pile_li[$niveau];
 				}
 
 				// puis les montees (y compris apres une descente un cran trop bas)