Comments (4)
It's 2019. Any news on this? I'm about to abandon VS Code since this is actually a big problem. It renders large ANT builds and Maven poms unreadable when the formatter nukes the empty lines that make them readable.
from vscode-xml.
After some testing, this may need to wait until the formatter is redesigned. Currently, it is a mess of RegEx matches and it is proving difficult to keep whitespace outside of a CDATA tag as we need to determine what is "important" white-space and what is extraneous.
I'm pushing this off the hotplate for now as I'm working on a v2.x rewrite. I will take this issue into consideration when writing the new/updated formatter.
from vscode-xml.
Released in v2.0.0-preview.1
. This will be released to the marketplace when v2.0.0
is out of preview.
from vscode-xml.
Hey,
I've just tested the preview 2.0 and now it looks like that there are new lines added everywhere:
<OPTION id="aircondition" name="aircondition" variable="opt_aircondition" active="0" />
<OPTION id="environmentsensor" name="environmentsensor" variable="opt_environmentsensor" active="0" />
becomes to
<OPTION id="aircondition" name="aircondition" variable="opt_aircondition" active="0" />
<OPTION id="environmentsensor" name="environmentsensor" variable="opt_environmentsensor" active="0" />
I don't want additional linebreaks, just keep the ones we added before
from vscode-xml.
Related Issues (20)
- XML Tree View - inner text
- Child elements of elements immidiately followed by text are not indented from the parent element
- XPath function current() is unknown HOT 2
- XML Tools: Convert XML to text (<> -> <>) not equals XML Tools: Convert XML to text (<> -> &lt;&gt;) HOT 1
- XPath Evaluator has no output or unexpected output HOT 5
- XPath Query: Unknown function distinct-values
- Large size XMLs are not formatted HOT 1
- Standalone version
- Added spaces before CDATA
- Auto format on opening XML
- Context menu entry 'XML Tools: Minify XML' should be hideable
- I read on a request from 2018 that the XML Tools: View XML Tree has been removed yet the documentation still shows it as a feature. Can you add it back or at least update your documentation?
- Significant whitespace is ignored after formatting
- xQuery linting bug (maybe)?
- XPath parse error when using xs:dateTime
- Exclude some XML files from formatting
- XSLT/XPath extension is incompatible
- RangeError with XPath evaluation
- Midline tabs inserted before comment
- The current machine does not support all of the following CPU features
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 vscode-xml.