Git Product home page Git Product logo

Comments (6)

kddnewton avatar kddnewton commented on June 10, 2024

It is specifically called out in the spec as invalid syntax. Here is the link: https://www.w3.org/TR/xml/#CleanAttrVals. It is not a bug. The parser we use does not recover from these types of errors because they're ambiguous.

from plugin-xml.

rudy-lath-vizio avatar rudy-lath-vizio commented on June 10, 2024

@kddnewton Is it possible to add a flag that skips that line and formats the rest of the file?

from plugin-xml.

kddnewton avatar kddnewton commented on June 10, 2024

I don't have control over it since we're using a 3rd-party parser. It's here: https://github.com/SAP/xml-tools. You're welcome to ask them, if they support such a flag I'll add it to prettier

from plugin-xml.

rudy-lath-vizio avatar rudy-lath-vizio commented on June 10, 2024

Awesome, I will try and reach out to them. Thanks!

from plugin-xml.

kddnewton avatar kddnewton commented on June 10, 2024

Ahh I wouldn't reach out to prettier itself, I mean reach out to the parser package. It's in the link.

from plugin-xml.

rudy-lath-vizio avatar rudy-lath-vizio commented on June 10, 2024

Yes I am doing that right now, I can try to add you to that conversation, since you'll know more about what to expect from them. And I will also delete my prettier issue, I thought that was the right place to request CLI features.

from plugin-xml.

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.