From ce5d9dd1f768416264ad6ee4c3abe5f958245967 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Wed, 14 Mar 2007 14:16:26 +0000 Subject: [PATCH] "ne pas rater la detection du header parce qu'une colonne est vide" --- ecrire/inc/texte.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/texte.php b/ecrire/inc/texte.php index 2d7ea31710..4d098fd7fb 100644 --- a/ecrire/inc/texte.php +++ b/ecrire/inc/texte.php @@ -847,7 +847,7 @@ function traiter_tableau($bloc) { } // - <thead> sous la forme |{{titre}}|{{titre}}| // Attention thead oblige a avoir tbody - else if (preg_match(',^(\|([[:space:]]*{{[^}]+}}[[:space:]]*|<))+$,sS', + else if (preg_match(',^(\|([[:space:]]*(:?{{[^}]+}}[[:space:]]*)?|<))+$,sS', $ligne, $thead)) { preg_match_all("/\|([^|]*)/S", $ligne, $cols); $ligne='';$cols= $cols[1]; -- GitLab