Giter VIP home page Giter VIP logo

Comments (6)

pdvrieze avatar pdvrieze commented on May 12, 2024

I'll have a look at it (on first sight of the title I was wondering why you'd want it - the description is clear). This will likely be for the 1.3.70 compatible version. It'll only work for those cases where the library generates the indent (and not the delegated xml library - although you can configure that).

from xmlutil.

pdvrieze avatar pdvrieze commented on May 12, 2024

This should now be in master. I've added an "indentString" property and changed "indent" to delegate to that (it assumes tabs are 8 chars, everything else 1). IndentString doesn't validate for valid whitespace at this point so if you mess up your xml it's your own fault.

from xmlutil.

JakeWharton avatar JakeWharton commented on May 12, 2024

Thank you!

IndentString doesn't validate for valid whitespace at this point so if you mess up your xml it's your own fault.

Yep, seems fair.

from xmlutil.

pdvrieze avatar pdvrieze commented on May 12, 2024

I've just pushed the preliminary compatibility updates with 1.3.70/0.20, but I didn't clean up all deprecations yet. Of course 0.20 has not been released yet either. If you really need it, I could do a release with just the indent code.

from xmlutil.

pdvrieze avatar pdvrieze commented on May 12, 2024

I've released 0.14.0.3 to contain this fix as well as some other fixes - compatible with 1.3.60
I've also release 0.20.0.0, but you will have to provide your own XmlWriter (rather than have the serialization format do this for you) - this code is in master, just not in the release.

from xmlutil.

szsoftware avatar szsoftware commented on May 12, 2024

@pdvrieze do you have a short sample code fragment?
I recently opened an issue about indentString.

from xmlutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.