Comments (1)
Hey @djfpaagman, thanks for opening this issue!
The whitespaces are actually there on purpose and expected because they are needed in some cases, as it could break some markups (I actually had this happen in one of my cases, that's why I added them 🙈). Sadly that's how HTML Block elements work.
For example:
<div>
<label>Test</label>
</div>
is not equal to:
<div><label>Test</label></div>
Maybe we could add a flag to enforce the removal of the whitespaces if you are sure that you don't need them.
from phlexing.
Related Issues (20)
- Uppercase tag names
- ivars and locals used in ERB attribute interpolation are not respected when generating the `initialize` method
- `<header>` gets treated as `<head>`
- ERB in attributes always outputs parens HOT 1
- ERB attribute interpolation with one static and one dynamic string HOT 5
- More than one ERB interpolation in HTML attribute
- Rails `t` and `translate` helpers
- Style tags gets minified/transformed
- More than one ERB string interpolation in HTML attribute HOT 1
- ERB interpolation within `<style>` tag doesn't work
- Stray `text` calls on method calls that render or capture for `Phlex::DeferredRender HOT 1
- Wrong boolean attributes conversion HOT 4
- SVG tags are a special case HOT 1
- Support case-sensitive HTML elements
- https://phlexing.fun is not reachable HOT 2
- Converter doesn't handle non-standard HTML attributes
- Methods that take a block shouldn't be called with `plain`
- Integrate Monaco Editor
- Copy to clipboard button copies old code, not what is in text box HOT 2
- `form_with` short-circuits output HOT 2
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 phlexing.