bella 01/06/21 22:41:27
Modified: sources/org/apache/batik/bridge SVGTextElementBridge.java
Log:
fixed empty text node bug again
(the first fix didn't quite work properly)
Revision Changes Path
1.27 +2 -2
xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java
Index: SVGTextElementBridge.java
===================================================================
RCS file:
/home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- SVGTextElementBridge.java 2001/06/22 03:37:33 1.26
+++ SVGTextElementBridge.java 2001/06/22 05:41:26 1.27
@@ -55,7 +55,7 @@
* Bridge class for the <text> element.
*
* @author <a href="[EMAIL PROTECTED]>Bill Haneman</a>
- * @version $Id: SVGTextElementBridge.java,v 1.26 2001/06/22 03:37:33 bella Exp $
+ * @version $Id: SVGTextElementBridge.java,v 1.27 2001/06/22 05:41:26 bella Exp $
*/
public class SVGTextElementBridge extends AbstractSVGBridge
implements GraphicsNodeBridge, ErrorConstants {
@@ -491,7 +491,7 @@
}
if (sb.length() > 0) {
as = new AttributedString(sb.toString(), m);
- } else {
+ } else if (stripfirst && striplast) {
as = new AttributedString(" ", m);
}
return as;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]