Bug 25870 Code assist for comments doesn't add new line character.
Eclipse's code assist for comment and javadoc doesn't add a line feed character to the second line of comment, it adds only carriage return character. Since other editors do not treat carriage return itself as a line feed, line nubmers for the source will appear differently between eclipse and other editors. HOW TO REPRODUCE: 1. In java file, type /** then press enter. eclipse will add the following to the source. /** * comment */ 2. Open this file with a different editor: vi, emacs, etc. You will see your comment looking like this instead... /** * comment */ 3. line number for your source after this comment will appear differently between eclipse editor and any other editor.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java
if (lineContents.startsWith("@")) 
			return false;
		
		if (lineContents.startsWith("<") && !isInlineTag(lineContents))
			return false;
		return true;
	}
	protected void jdocHandleBackspaceDelete(IDocument document, DocumentCommand c) {
		try {
			String text= document.get(c.offset, c.length);
			int line= document.getLineOfOffset(c.offset);
			int lineOffset= document.getLineOffset(line);
			
			if (document.getLineDelimiter(line).equals(text)) {
				
				String prefix= jdocExtractLinePrefix(document, line + 1);
				
				if (prefix.length() > 0) {
					int length= document.getLineDelimiter(line).length() + prefix.length();
					document.replace(c.offset, length, null);
					c.doit= false;
					c.length= 0;
					return;
				}
			
			} else if (document.getChar(c.offset - 1) == '*' && jdocExtractLinePrefix(document, line).length() - 1 >= c.offset - lineOffset) {
				String prefix= jdocExtractLinePrefix(document, line);
				String lineDelimiter= document.getLineDelimiter(line - 1);
				int length= lineDelimiter.length() + prefix.length();