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
protected boolean canAppend(final CommentLine line, final CommentRange previous, final CommentRange next, final int space, final int length) {
		return space == 0 || space + next.getLength() < length;
	}
	/**
	 * Can the two current comment ranges be applied to the underlying document?
	 * 
	 * @param previous Previous comment range which was already applied
	 * @param next Next comment range to be applied
	 * @return <code>true</code> iff the next comment range can be applied, <code>false</code> otherwise
	 */
	protected boolean canApply(final CommentRange previous, final CommentRange next) {
		return true;
	}
	/**
	 * Finalizes the comment region and adjusts its starting indentation.
	 * 
	 * @param indentation Indentation of the formatted comment region
	 */
	protected void finalizeRegion(final String indentation) {
		
	}
	/**
	 * Formats the comment region.
	 * 
	 * @param indentation Indentation of the formatted comment region
	 */
	public void format(String indentation) {
		final IDocument document= getDocument();
		final Map preferences= getStrategy().getPreferences();
		int margin= 80;