[
http://jira.jboss.com/jira/browse/JBIDE-801?page=comments#action_12372973 ]
Max Andersen commented on JBIDE-801:
------------------------------------
can we fix it just for our editor without having to replaced classes in the standard
eclipse wtp installation ?
Code formater breaks
---------------------
Key: JBIDE-801
URL:
http://jira.jboss.com/jira/browse/JBIDE-801
Project: JBoss Tools
Issue Type: Bug
Affects Versions: 2.0.0.Beta1
Environment: RHDS beta1, windows XP, jdk 1.5._0.12
Reporter: Adrian Mitev
Assigned To: Alexey Kazakov
Priority: Critical
Fix For: 2.0.0.Beta4
Attachments: after format.JPG, before format.JPG
I'm editting xhtml page and have the following code:
<table
style="border: 2px solid #{a4jSkin.additionalBackgroundColor}"
width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" style="background-color:
#{a4jSkin.additionalBackgroundColor}">#{projMsg.components}</td>
<td width="50%" style="background-color:
#{a4jSkin.additionalBackgroundColor}">#{projMsg.versions}</td>
</tr>
...
After i invoke code formatter - ctrl+shift+f the it formats the code but breaks the EL
expressions inside the style property
The code looks like this:
<table
style="border: 2px solid #{ a4jSkin . additionalBackgroundColor"
width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" style="background-color: #{ a4jSkin .
additionalBackgroundColor">#{projMsg.components}</td>
<td width="50%" style="background-color: #{ a4jSkin .
additionalBackgroundColor">#{projMsg.versions}</td>
</tr>
....
There are some space inserted and the closing "}" bracket is removed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira