You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/08/06 12:38:37 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor XMLOutput.java

juergen     2002/08/06 03:38:36

  Modified:    testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
                        XMLOutput.java
  Log:
  substitute < and > by the &gt; and &lt: at t-processor output.
  
  Revision  Changes    Path
  1.4       +6 -6      jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLOutput.java
  
  Index: XMLOutput.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/XMLOutput.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLOutput.java	25 Apr 2002 21:15:13 -0000	1.3
  +++ XMLOutput.java	6 Aug 2002 10:38:36 -0000	1.4
  @@ -91,8 +91,6 @@
           StringWriter sw = new StringWriter();
           e.printStackTrace( new PrintWriter(sw, true) ); //autoFlush=true
           String s = sw.toString();
  -        s = TProcessors.replace(s, "<", "&lt;");  // some specific XML adoptions
  -        s = TProcessors.replace(s, ">", "&gt;");
           writeElement("exception", s );
       }
       
  @@ -119,6 +117,8 @@
       
       
       public void writeElement(String elementName, String value) {
  +        value = TProcessors.replace(value, "<", "&lt;");  // some specific XML adoptions
  +        value = TProcessors.replace(value, ">", "&gt;");
           writeElement(elementName, null, null, value);
       }
       
  
  
  

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