From: SourceForge.net <no...@so...> - 2012-01-18 01:43:55
|
Bugs item #1170140, was opened at 2005-03-24 12:37 Message generated for change (Settings changed) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1170140&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: editor core Group: minor bug Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dusty Phillips (sawdusty) >Assigned to: Damien (kog13) Summary: autoIndent aligns with javadoc * Initial Comment: If I'm typing a Java file, and I enter a Javadoc, followed by a class or method declaration, when I press <enter> on the line, it indents to the * on the javadoc. Example: I type: <pre> /** * javadoc comment */ public class MyClass { </pre> Jedit automatically indents to: <pre> /** * javadoc comment */ public class MyClass { </pre> inserting the space at the beginning of the line. This is quite annoying. Workaround: comment out these two lines <pre> <PROPERTY NAME="indentOpenBrackets" VALUE="{" /> <PROPERTY NAME="indentCloseBrackets" VALUE="}" /> </pre> in the java mode file. However, this disables the other features of autoindent. Dusty ---------------------------------------------------------------------- Comment By: Damien (kog13) Date: 2010-11-15 14:23 Message: This is an old bug, but one that I've also run into and am not sure how to classify. Technically speaking, it's not a bug; the indentation of each line is determined by that of the line before it, which results in the space being preserved. As far as I can tell, the only way to really fix this would be to change the indent behavior, by either forcing an alignment or by adding special support for comment headers. This might be a little difficult to do, though I'll probably look into it soon. ---------------------------------------------------------------------- Comment By: Robert Schwenn (rschwenn) Date: 2007-02-08 13:01 Message: Logged In: YES user_id=1486645 Originator: NO Now, that I got this tracker item via Mail, there are some leading spaces to see: Original, there was leading spaces only before the javadoc. "public class MyClass " was typed without any leading spaces. But at the time I type "{" this line is indented like the preceeding javadoc. It's not expected, is it?. jEdit 4.2final and 4.3pre9 java 1.5.0_10 Windows XP SP2 ---------------------------------------------------------------------- Comment By: Robert Schwenn (rschwenn) Date: 2007-02-08 12:33 Message: Logged In: YES user_id=1486645 Originator: NO I can't see what You mean. I guess the text You typed has been re-formatted and has become unclear. HTML tags are not recognized here in the tracker. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1170140&group_id=588 |