[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-801) Code formater breaks
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Mon Aug 20 11:42:01 EDT 2007
[ http://jira.jboss.com/jira/browse/JBIDE-801?page=comments#action_12372961 ]
Alexey Kazakov commented on JBIDE-801:
--------------------------------------
It's problem of WTP HTML editor. Not XML Editor.
And I can reproduce it there.
Open With -> HTML Editor.
Our source editor extends it.
It seems HTML style Formater breaks EL. I see problem only with attribute style.
> 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: Viacheslav Kabanovich
> 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
More information about the jbosstools-issues
mailing list