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
next.applyStart(range, indentation, length);
		}
	}
	/**
	 * Applies the changed content to the underlying document
	 * 
	 * @param change Text content to apply to the underlying document
	 * @param offset Offset measured in comment region coordinates where to apply the changed content
	 * @param length Length of the content to be changed
	 */
	protected final void applyText(final String change, final int offset, final int length) {
		try {
			final int base= getOffset() + offset;
			final String content= fDocument.get(base, length);
			if (!change.equals(content))
				fDocument.replace(getOffset() + offset, length, change);
		} catch (BadLocationException exception) {
			
		}
	}
	/**
	 * Can the comment range be appended to the comment line?
	 * 
	 * @param line Comment line where to append the comment range
	 * @param previous Comment range which is the predecessor of the current comment range
	 * @param next Comment range to test whether it can be appended to the comment line
	 * @param space Amount of space in the comment line used by already inserted comment ranges
	 * @param length The maximal length of text in this comment region measured in average character widths
	 * @return <code>true</code> iff the comment range can be added to the line, <code>false</code> otherwise
	 */