From 7d2660de723aa0d499251c9c147b59137a99cb69 Mon Sep 17 00:00:00 2001 From: kitfox Date: Fri, 13 Jul 2012 01:37:27 +0000 Subject: Now trimming text in tag. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@120 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/Text.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main/java/com/kitfox/svg/Text.java b/src/main/java/com/kitfox/svg/Text.java index e107d79..1b2fb76 100644 --- a/src/main/java/com/kitfox/svg/Text.java +++ b/src/main/java/com/kitfox/svg/Text.java @@ -266,6 +266,10 @@ public class Text extends ShapeElement if (obj instanceof String) { String text = (String)obj; + if (text != null) + { + text = text.trim(); + } strokeWidthScalar = 1f / fontScale; -- cgit v1.2.3-55-g7522