From 296442bd852c937f828334a3c30ea28b37fd02fa Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 4 Jan 2010 10:39:40 +0000
Subject: [PATCH] =?UTF-8?q?Petite=20erreur=20dans=20le=20d=C3=A9compilateu?=
 =?UTF-8?q?r:=20quand=20on=20simule=20un=20champ=20=C3=A9tendu=20(=C3=A0?=
 =?UTF-8?q?=20cause=20des=20espaces=20apr=C3=A8s=20des=20parenth=C3=A8ses?=
 =?UTF-8?q?=20sans=20crochets),=20il=20ne=20faut=20pas=20ins=C3=A9rer=20la?=
 =?UTF-8?q?=20cha=C3=AEne=20des=20espaces,=20mais=20un=20tableau=20d'un=20?=
 =?UTF-8?q?unique=20champ=20texte=20=C3=A9gal=20=C3=A0=20cette=20cha=C3=AE?=
 =?UTF-8?q?ne.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/public/decompiler.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ecrire/public/decompiler.php b/ecrire/public/decompiler.php
index 090440fc41..e73c3968da 100644
--- a/ecrire/public/decompiler.php
+++ b/ecrire/public/decompiler.php
@@ -179,8 +179,11 @@ function public_decompiler($liste, $fmt='', $prof=0)
 		AND $p->fonctions) {
 	      $n = strlen($next->texte) - strlen(ltrim($next->texte));
 	      if ($n)  {
-		$p->apres = substr($next->texte, 0, $n);
-		$next->texte = substr($next->texte, $n);
+			$champ = new Texte;
+			$champ->texte = substr($next->texte, 0, $n);
+			$champ->ligne = $p->ligne;
+			$p->apres = array($champ);
+			$next->texte = substr($next->texte, $n);
 	      }
 	    }
 	    $contenu[] = array($d($p, $fmt, $prof2), $p->type);
-- 
GitLab