GSP Formatting bug

Hi,
An annoying bug just popped up in IntelliJ 9.0.2:

The following GSP code cannot be reformatted in IntelliJ:

<!DOCTYPE html>
<html lang="en">
<head>

<style type="text/css" media="screen">
@import url("${resource(dir: 'styles', file: 'base.css')}");
@import url("${resource(dir: 'styles', file: 'tabs.css')}");
@import url("${resource(dir: 'styles', file: 'navigation.css')}");
@import url("${resource(dir: 'styles', file: 'splitter.css')}");
<g:if test="${pageProperty(name: 'body.class') == 'administration'}">
@import url("${resource(dir: 'styles', file: 'administration.css')}");
</g:if>
</style>

</head>

<body >
</body>
</html>

Reformatting will result in the following:

<!DOCTYPE html>
<html lang="en">
<head>

<style type="text/css" media="screen">
@import url("${resource(dir: 'styles', file: 'base.css')}");
@import url("${resource(dir: 'styles', file: 'tabs.css')}");
@import url("${resource(dir: 'styles', file: 'navigation.css')}");
@import url("${resource(dir: 'styles', file: 'splitter.css')}");
<
g:if

test
=
"
${
pageProperty(name: 'body.class') == 'administration'
}
"
>
@import url("${resource(dir: 'styles', file: 'administration.css')}");

</
g:if
>
</style>

</head>

<body >
</body>
</html>

Would be nice if this could be fixed.

Erik

0
4 comments
Avatar
Permanently deleted user

Hi Erik,

Please submit corresponding ticket about that to IDEA tracker.

Regards, Denis

0

I considered that, but due to the lack of feedback on earlier issues created, I posted it here.

0
Avatar
Permanently deleted user

All IDEA developers activity is driven by tracker issues, i.e. the chances of non-reported bug to be fixed are rather low.

I created the ticket for your request - IDEA-54974. Feel free to track its progess.

Regards, Denis

0

Please sign in to leave a comment.