Bug 43595 Javadoc formatter adds an extra line every time you format
20030924 Everytime you format a comment with a blank line another blank line is added. STEPS 1)Add a comment like this: /** * Get the progress monitor for a job. If it is a UIJob get the main * monitor from the status line. Otherwise get a background monitor. * * @return IProgressMonitor */ 2) Make a change in another method and format. It will look this this afterwards /** * Get the progress monitor for a job. If it is a UIJob get the main * monitor from the status line. Otherwise get a background monitor. * * * @return IProgressMonitor */
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/JavaDocLine.java
else
					fReference= common;
			}
		}
		super.append(range);
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentLine#applyStart(org.eclipse.jdt.internal.ui.text.comment.CommentRange, java.lang.String, int)
	 */
	protected void applyStart(final CommentRange range, final String indentation, final int length) {
		final CommentRegion parent= getParent();
		if (parent.isSingleLine() && parent.getSize() == 1) {
			parent.applyText(getStartingPrefix() + CommentRegion.COMMENT_RANGE_DELIMITER, 0, range.getOffset());
		} else
			super.applyStart(range, indentation, length);
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentLine#getReference()
	 */
	protected String getReference() {
		return fReference;
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentLine#getStartingPrefix()
	 */
	protected String getStartingPrefix() {
		return JAVADOC_START_PREFIX;
	}
}