Strange Indentation Behavior - eclipse

Having trouble installing Oxygen? Got a bug to report? Post it all here.
enave
Posts: 2
Joined: Sat Sep 01, 2007 4:48 am

Strange Indentation Behavior - eclipse

Post by enave »

In a fresh install of eclipse 3.3 on WinXP and with no other plugins except oXygen installed, I'm seeing very strange indentation behavior. If this is an option or feature, I can't find it on a dialog.

Let's say I have the following two lines:
<xsl:value-of select="foo">
<xsl:value-of select="bar">

I place the cursor at the position 1 on the second line and I hit the enter key. The result is that Oxygen indents the second line after adding the line break. So I get this:

<xsl:value-of select="foo">

<xsl:value-of select="bar">

And then I have to hit the backspace key. I'm going to wear out my backspace key. I'm so tired of hitting it! Also, if I paste text, it is always indented one more level than what it was when I copied it.

This doesn't happen in any documents that are handled by other eclipse editors. .htm documents work just fine. This only happens in .xml, .xslt, etc documents handled by oxygen.
enave
Posts: 2
Joined: Sat Sep 01, 2007 4:48 am

Post by enave »

hmm. I should have previewed. Clearly what I mean is that I get this:

<xsl:value-of select="foo">

(tab character here)<xsl:value-of select="bar">
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Thank you for reporting the problem. The indentation is inserted only when the cursor is at position 1 on a line. We will fix the problem.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Strange Indentation Behavior - eclipse

Post by sorin_ristache »

Hello,
enave wrote:I place the cursor at the position 1 on the second line and I hit the enter key. The result is that Oxygen indents the second line after adding the line break. So I get this:

<xsl:value-of select="foo">

<xsl:value-of select="bar">

And then I have to hit the backspace key.
We fixed the indent problem in a previous version. You can test the latest version from the Download page.


Regards,
Sorin
Post Reply