From 9a6176d0169f2657079d0fc3fc3e9c463cd3ba7a Mon Sep 17 00:00:00 2001 From: vdhoeven Date: Wed, 8 Jul 2009 10:33:49 +0000 Subject: [PATCH] Fix git-svn-id: svn://svn.savannah.gnu.org/texmacs/trunk@2741 64cb5145-927a-446d-8aed-2fb7b4773692 --- src/src/Data/Convert/Generic/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/Data/Convert/Generic/input.cpp b/src/src/Data/Convert/Generic/input.cpp index b21054f0..ca1f4f1f 100644 --- a/src/src/Data/Convert/Generic/input.cpp +++ b/src/src/Data/Convert/Generic/input.cpp @@ -160,7 +160,7 @@ texmacs_input_rep::write (tree u) { tree& t= docs (channel); if (!is_document (u)) u= tree (DOCUMENT, u); if (t[N(t)-1] == "") t[N(t)-1]= u[0]; - else { + else if (u[0] != "") { if (!is_concat (t[N(t)-1])) t[N(t)-1]= tree (CONCAT, t[N(t)-1]); if (!is_concat (u[0])) u[0]= tree (CONCAT, u[0]); t[N(t)-1] << A(u[0]); -- 2.11.4.GIT