 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: autoformat / newline before link
Posted: Aug 04, 2008 - 09:44 PM
|
|
Joined: Jun 26, 2008
Posts: 11
|
|
It seems to me that auto formatting for HTML misbehaves by inserting a newline before an anchor tag. Given the following code:
| Code: |
testingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtestingtesting<a href="foo">foo</a>
|
Running "Source > Format" will insert a newline before the opening anchor tag. The result is that the output, when viewed in a web browser, is different after the formatting than it is before formatting, in that there is a space before the word "foo."
Is there any way to disable this behavior? I find it really annoying because we often have links in our pages that look like this: [foo]. If the formatter decides to put a newline before the anchor tag, it ends up like this: [ foo]
Thanks,
Jonathan |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: autoformat / newline before link
Posted: Aug 05, 2008 - 04:31 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
Jonathan,
I can see why your facing an issue here but unfortunately this behavior cannot be disabled. The only workaround is to avoid using the formatter. Sorry about that. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: autoformat / newline before link
Posted: Aug 05, 2008 - 07:27 PM
|
|
Joined: Jun 26, 2008
Posts: 11
|
|
| That's too bad. Maybe I'll make a jsp tag for a link surrounded by square brackets. Or figure out how to submit a bug. Or both. :) Anyway, thanks for the response. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: autoformat / newline before link
Posted: Aug 13, 2008 - 06:44 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
| Sorry for the inconvenience. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |