Comments (6)
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.
@kddnewton Is it possible to add a flag that skips that line and formats the rest of the file?
from plugin-xml.
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.
Awesome, I will try and reach out to them. Thanks!
from plugin-xml.
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.
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)
- Formatting not working on Salesforce xml files HOT 3
- Preserve whitespace in empty `<xsl:text>` nodes HOT 3
- Plugin is overwriting tag content HOT 1
- Exception when formatting with prettier standalone in browser HOT 2
- Extension `Prettier - code formatter` is configured as formatter but it cannot format 'edmx'-files HOT 1
- Prettier doesn't detect at all HOT 1
- Processing instructions disrupt formatting HOT 3
- Text content including special characters may be interpretted as XML
- Text content is split around entities HOT 5
- XML attributes are uncommonly indented HOT 1
- Whitespace formatting isn't valid and idempotent with `ignore` sensitivity
- [Bug] Issue with Formatting XML Files in VSCode HOT 1
- not indenting HOT 3
- Chokes on doctype with custom entities HOT 3
- move comment before HOT 4
- npm package for 3.4.0 is missing files HOT 2
- Plugin doesn't work with latest version of prettier HOT 1
- Plugin is adding non-existing spaces to result content with HTML character entities
- Whitespace is incorrectly preserved when `xmlWhitespaceSensitivity` is set to `ignore`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-xml.