[libavg-users] Newline character in words nodes

Alex Harrington alex at longhill.org.uk
Mon Oct 26 21:51:49 CET 2009


Hopefully I'm missing something obvious here!

I'm trying to add a words node with more than one paragraph in it.

eg:
This is the first paragraph
that wraps automatically
inside the node.

Here's the second paragraph


With code like:
<words id="text" opacity="1" parawidth="100">This is the first paragraph that wraps automatically inside the node

Here's the second paragraph</words>

The node is created fine but the linebreak is lost. I've tried putting in \r\n and \n escape sequences but they seem to be ignored too. I also tried escaping the escapes - eg \\n and \\r\\n but they just end up adding a \n or a \r\n to the printed output. What's the magic way to get a line break?

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer



More information about the libavg-users mailing list