summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-04-24 11:14:19 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-04-24 11:14:19 +0000
commit361ff9f55ac6accbeb5016d680db735f0d888a9e (patch)
tree0e411080b8e81b8b55db6a712f783ed7738e68e2 /src/xml
parentFixes to Catalan translation (diff)
downloadinkscape-361ff9f55ac6accbeb5016d680db735f0d888a9e.tar.gz
inkscape-361ff9f55ac6accbeb5016d680db735f0d888a9e.zip
Fix center alignment errors in flowed text due to white space between elements inside a <flowRoot> element. Alternative fix to that proposed by samuel.
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/repr-io.cpp3
1 files changed, 2 insertions, 1 deletions
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 <text> 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;
}