axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Wed, 10 Oct 2001 20:55:07 GMT
tomj        01/10/10 13:55:07

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Filter out \r and \n in documentation elements to avoid messing up the Java comments.
  
  Revision  Changes    Path
  1.45      +6 -1      xml-axis/java/src/org/apache/axis/wsdl/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Emitter.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- Emitter.java	2001/10/10 13:45:04	1.44
  +++ Emitter.java	2001/10/10 20:55:07	1.45
  @@ -1990,13 +1990,18 @@
        * output documentation element as a Java comment
        */
       private void writeComment(PrintWriter pw, Element element) {
  -        // This control how many characters per line
  +        // This controls how many characters per line
           final int LINE_LENGTH = 65;
   
           if (element == null)
               return;
   
           String comment = element.getFirstChild().getNodeValue();
  +
  +        // Strip out stuff that will really mess up our comments
  +        comment = comment.replace('\r', ' ');
  +        comment = comment.replace('\n', ' ');
  +
           if (comment != null) {
               int start = 0;
   
  
  
  

Mime
View raw message