Hello Thomas, I've already tried printing the pattern.getPatternName() as well as inputing a string such as 'hello' and the effect is still the same. As for serializing the document, I haven't looked at that since its been working fine, but I'll do that.
vyang thomas.deweese wrote: > > Hi Vyang, > > vyang <[EMAIL PROTECTED]> wrote on 11/05/2007 10:51:42 AM: > >> I'm having a bit of a problem with adding text to the desc element. When > I >> add text to the desc element, it adds the text to the next line and not >> after the <desc>. For example in the svg it'll look like this: >> >> <rect> >> <desc> >> hello</desc> >> </rect> > > How are you serializing the SVG Document. I suspect the > serializer is causing the problem. Most XML serializers will > move text children to a separate line so the SVG is readable. > > >> Element desc = patternDoc.createElementNS(null, "desc"); >> desc.setTextContent(pattern.getPatternName()); > > Just to test the obvious, 'pattern.getPatternName()' > doesn't start with a newline? > > -- View this message in context: http://www.nabble.com/desc-text-add-problem-tf4752451.html#a13607616 Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
