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/CommentRegion.java
} catch (BadLocationException exception) {
			
		}
	}
	/**
	 * Appends the comment range to this comment region.
	 * 
	 * @param range Comment range to append to this comment region
	 */
	protected void append(final CommentRange range) {
		fRanges.add(range);
	}
	/**
	 * Applies the formatted comment region to the underlying document.
	 * 
	 * @param indentation Indentation of the formatted comment region
	 * @param length The maximal length of text in this comment region measured in average character widths
	 */
	protected void applyRegion(final String indentation, final int length) {
		final int last= fLines.size() - 1;
		if (last >= 0) {
			CommentLine previous= null;
			CommentLine next= (CommentLine)fLines.get(last);
			CommentRange range= next.getLast();
			next.applyEnd(range, indentation, length);
			for (int line= last; line >= 0; line--) {
				previous= next;
				next= (CommentLine)fLines.get(line);
				range= next.applyLine(previous, range, indentation, line);
			}