...
diff --git a/coders/svg.c b/coders/svg.c
index 0896140..b47e093 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -1491,8 +1491,6 @@
(void) FormatLocaleFile(svg_info->file,"class \"text\"\n");
(void) FormatLocaleFile(svg_info->file,"translate %g,%g\n",
svg_info->bounds.x,svg_info->bounds.y);
- if (*svg_info->text != '\0')
- StripString(svg_info->text);
svg_info->center.x=svg_info->bounds.x;
svg_info->center.y=svg_info->bounds.y;
svg_info->bounds.x=0.0;
@@ -2708,6 +2706,7 @@
char
*text;
+ SVGStripString(MagickTrue,svg_info->text);
text=EscapeString(svg_info->text,'\'');
(void) FormatLocaleFile(svg_info->file,"text 0,0 \"%s\"\n",text);
text=DestroyString(text);