Erratic indent behavior
Posted: Sun Sep 06, 2009 7:45 pm
Using oXygen XML Editor v10.3 on both XP and Mac OS X (10.6), I have been noticing erratic indent behavior. My settings are as follows:
Editor > Format
> Detect indent on open = off
> Indent with tabs = off
> Indent size = 4
> Hard line wrap = off
> Indent on enter = on
> Enable smart enter = on
> Detect line width on open = off
> Format and indent the document on open = off
> Line width = 140
But, often if I select some flush-left text and hit tab, the text only indents 1, 2, or sometimes 3 spaces - I've seen all cases. The only way I can get text to respect my 4-space setting is to de-indent a line, close the file, reopen it, and re-indent. If a line is already indented with two spaces, I can't get the line to indent with 4 spaces, even though I select the line, hit shift-tab to delete the indent, and hit tab again -- the 2-space indent returns; indenting again moves the line out to 6 spaces. I often see this 'sticky indent' behavior, where the indent levels of already-indented lines stick despite the settings in Editor > Format.
I haven't found a consistent way to reproduce the problem, but I do see it crop up on new .txt files after only a few cycles of reopening a file, de-indenting a line, and re-indenting; the indents start to appear at 1, 2, or 3 spaces instead of 4. I primarily work in .txt, .xml, and .xquery files.
Thanks in advance for any suggestions you might have. I'm happy to troubleshoot this further.
- Joe
Editor > Format
> Detect indent on open = off
> Indent with tabs = off
> Indent size = 4
> Hard line wrap = off
> Indent on enter = on
> Enable smart enter = on
> Detect line width on open = off
> Format and indent the document on open = off
> Line width = 140
But, often if I select some flush-left text and hit tab, the text only indents 1, 2, or sometimes 3 spaces - I've seen all cases. The only way I can get text to respect my 4-space setting is to de-indent a line, close the file, reopen it, and re-indent. If a line is already indented with two spaces, I can't get the line to indent with 4 spaces, even though I select the line, hit shift-tab to delete the indent, and hit tab again -- the 2-space indent returns; indenting again moves the line out to 6 spaces. I often see this 'sticky indent' behavior, where the indent levels of already-indented lines stick despite the settings in Editor > Format.
I haven't found a consistent way to reproduce the problem, but I do see it crop up on new .txt files after only a few cycles of reopening a file, de-indenting a line, and re-indenting; the indents start to appear at 1, 2, or 3 spaces instead of 4. I primarily work in .txt, .xml, and .xquery files.
Thanks in advance for any suggestions you might have. I'm happy to troubleshoot this further.
- Joe