From 361ff9f55ac6accbeb5016d680db735f0d888a9e Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 24 Apr 2019 13:14:19 +0200 Subject: Fix center alignment errors in flowed text due to white space between elements inside a element. Alternative fix to that proposed by samuel. --- src/xml/repr-io.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xml') diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index f6552a5f9..7b76a3086 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -983,7 +983,8 @@ void sp_repr_write_stream_element( Node * repr, Writer & out, // If this is a element, suppress formatting whitespace // for its content and children: - if (strcmp(repr->name(),"svg:text") == 0) { + if (strcmp(repr->name(), "svg:text") == 0 || + strcmp(repr->name(), "svg:flowRoot") == 0) { add_whitespace = false; } -- cgit v1.2.3