-
Notifications
You must be signed in to change notification settings - Fork 15
XML/HTML Formatter empties style attributs #35
Comments
Interesting observation. From an XML perspective this a bug of the Eclipse formatter. But we have to figure out if this is actually a feature that wants to prevent using style attributes in HTML and that we need to switch off. So far I think it is a bug... |
I created this
|
I can add any content to the style attribute and it gets removed on formatting while other attributes (e.g. class) remain as is. This seems to be more of a feature than a bug. I am still clueless where to switch it off. |
If the file is named |
I only found this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=358114 |
I had a look into eclipse source code regarding this. It would be nice if there was some kind of a switch for disabling style formatting, but currently this seems to be not the case :( |
This is also a very nice example where your style will be destroyed: |
This is really an Eclipse JDT bug and not related to oasp4j-ide: There is pretty much nothing we can do about it except for waiting and hoping for Eclipse Mars release to fix it. |
The XML/HTML formatter empties style attributs. For example, if you have a tag like this in your HTML/XML file:
Ater hitting CTRL+SHIFT+F the style attribute is empty:
Disabling "Automatically close attribute values" did not help. Any ideas?
The text was updated successfully, but these errors were encountered: