morten      01/09/25 13:06:33

  Modified:    java/src/org/apache/xalan/xsltc/runtime
                        AbstractTranslet.java
  Log:
  Fix to allow indentation to be turned off XML/HTML output.
  PR:           bugzilla 3469
  Obtained from:        n/a
  Submitted by: Douglas J. Sellers ([EMAIL PROTECTED])
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.24      +4 -7      
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java
  
  Index: AbstractTranslet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- AbstractTranslet.java     2001/09/12 08:35:11     1.23
  +++ AbstractTranslet.java     2001/09/25 20:06:33     1.24
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: AbstractTranslet.java,v 1.23 2001/09/12 08:35:11 morten Exp $
  + * @(#)$Id: AbstractTranslet.java,v 1.24 2001/09/25 20:06:33 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -572,17 +572,14 @@
                if (_version != null) handler.setVersion(_version);
                if (_standalone != null) handler.setStandalone(_standalone);
                if (_omitHeader) handler.omitHeader(true);
  -             if (_indent) handler.setIndent(_indent);
  +             handler.setIndent(_indent);
                if (_doctypeSystem != null)
                    handler.setDoctype(_doctypeSystem, _doctypePublic);
            }
            // Transfer all output settings relevant to HTML output
            else if (_method.equals("html")) {
                handler.setType(TextOutput.HTML);
  -             if (_indent)
  -                 handler.setIndent(_indent);
  -             else
  -                 handler.setIndent(true);
  +             handler.setIndent(_indent);
                handler.setDoctype(_doctypeSystem, _doctypePublic);
                if (_mediaType != null) handler.setMediaType(_mediaType);
            }
  @@ -598,7 +595,7 @@
            if (_version != null) handler.setVersion(_version);
            if (_standalone != null) handler.setStandalone(_standalone);
            if (_omitHeader) handler.omitHeader(true);
  -         if (_indent) handler.setIndent(_indent);
  +         handler.setIndent(_indent);
            handler.setDoctype(_doctypeSystem, _doctypePublic);
        }
       }
  
  
  

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

Reply via email to