Page 1 of 1

Strange Indentation Behavior - eclipse

Posted: Sat Sep 01, 2007 4:53 am
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.

Posted: Sat Sep 01, 2007 4:55 am
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">

Posted: Mon Sep 03, 2007 10:14 am
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

Re: Strange Indentation Behavior - eclipse

Posted: Fri Mar 20, 2009 4:08 pm
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