Github user mcgilman commented on the issue:

    https://github.com/apache/nifi/pull/2365
  
    @joewitt Looks like the previous implementation using a `com.sun` class 
used two space indentation. Primarily investigation suggests a few options...
    
    - Accept a new default of 4 spaces.
    - Set a property which configures an internal indentation strategy
    
    `marshaller.setProperty("com.sun.xml.internal.bind.indentString", "  ");`
    
    - Add a dependency on the BSD licensed stax-utils
    
    ```
    <dependency>
        <groupId>net.java.dev.stax-utils</groupId>
        <artifactId>stax-utils</artifactId>
        <version>20070216</version>
    </dependency>
    ```
    
    which offers a similar (same?) `com.sun` class that we were previously 
referencing.


---

Reply via email to