You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by ba...@apache.org on 2002/01/30 05:51:56 UTC

cvs commit: jakarta-taglibs/string/xml string.xml

bayard      02/01/29 20:51:56

  Modified:    string/xml string.xml
  Log:
  As pointed out by Calvin Lau at Berkeley, the \n's in my example for
  the replace tag don't work. I've now replaced it with a working example.
  
  Revision  Changes    Path
  1.11      +7 -2      jakarta-taglibs/string/xml/string.xml
  
  Index: string.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/string/xml/string.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- string.xml	2 Dec 2001 20:47:03 -0000	1.10
  +++ string.xml	30 Jan 2002 04:51:55 -0000	1.11
  @@ -1237,11 +1237,16 @@
             <usage>
               <comment>
                 One use of the replace tag is to change newlines to html 
  -              br's.
  +              br's. Note that real newlines need to be entered into the JSP.
               </comment>
               <code>
   <![CDATA[ 
  -<str:replace replace="\n" with="&lt;br&gt;\n"><db:get value="data"></str:replace>
  +<str:replace replace="
  +" with="&lt;br&gt;
  +">A sentence.
  +Another sentence.
  +Some more to test. And insert Br's into.
  +Hopefully.</str:replace>
   ]]>       
               </code>
             </usage>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>