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
* might return <code>null</code> on error.
	 */
	private static ICompilationUnit getCompilationUnit() {
		IWorkbenchWindow window= PlatformUI.getWorkbench().getActiveWorkbenchWindow();
		if (window == null)
			return null;
			
		IWorkbenchPage page= window.getActivePage();
		if (page == null)	
			return null;
		IEditorPart editor= page.getActiveEditor();
		if (editor == null)
			return null;
		IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();
		ICompilationUnit unit= manager.getWorkingCopy(editor.getEditorInput());
		if (unit == null)
			return null;
		return unit;
	}
	/**
	 * Creates tags for a newly declared or defined method.
	 */
	private static String createJavaDocMethodTags(IMethod method, String preFix, String postFix) throws JavaModelException {
		final StringBuffer buffer= new StringBuffer();
		final String[] parameterNames= method.getParameterNames();
		for (int i= 0; i < parameterNames.length; i++)
			appendJavaDocLine(buffer, preFix, "param", parameterNames[i], postFix); 
		final String returnType= method.getReturnType();
		if (returnType != null && !returnType.equals(Signature.SIG_VOID)) {
			String name= Signature.getSimpleName(Signature.toString(returnType));