In my example for the string-taglib, I stupidly gave an example of:

 <str:replace replace="\n" with="<br>\n"><db:get value="data"></str:replace>

without testing. Where db:get is a hypothetical tag creating data.
The example doesn't work because the \n in the tag gets turned into a
normal 'n' before it hits the Tag object.

Is there a way to solve this that I am missing?

Sending:   "\\n" just sends through what you'd expect, \ and n.
And sending:  "&#92n" does just the same.


I assume that a \t and \b etc won't work either. So my current solution is
an attribute to my tag which says to treat any \n's as being real newlines
and not the characters \ and n. Seems a bit painful though. Or a new tag.

Bay


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to