|
Posted by Els on 10/11/05 23:13
Piotr.Ozaist@gmail.com wrote:
> As I've written it was only example. In real program/web page I have to
> do some refactor of JSP page to eliminate some white spaces. I've got a
> code like:
> <logic:equal condition1 bean-write - ... />
> <logic:equal condition2 bean-write - ... />
> ...
> <logic:equal conditionN bean-write - ... />
>
> and the result of this code looks like our
> "a b c"
> from example.
> But I want "abc"
> Of course I can write it in JSP like:
> <logic:equal condition1 bean-write - ... /><logic:equal condition2
> bean-write - ... />...<logic:equal conditionN bean-write - ... />
> but it is not nice code, don't U think??
True, but not too difficult to solve I think.
I'd write the code like:
<logic:equal condition1 bean-write - ... />
<logic:equal condition2 bean-write - ... />
And after having finished the code, do a search and replace, changing
all instances of:
/>\n<logic
into:
/><logic
I mean, after the code is written and checked, there's no need to keep
it nice looking really. You can easily enough save a nice looking copy
in case you ever need to make changes, and use the not-so-nice looking
copy to do the job.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Navigation:
[Reply to this message]
|