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
int length= reference.length();
		for (int offset= 0; offset < length; offset++) {
			if (reference.charAt(offset) == '\t')
				tabs++;
		}
		length += tabs * (fTabs - 1);
		return length;
	}
	/**
	 * Returns the width of the reference string in pixels.
	 * 
	 * @param reference The reference string to get the width
	 * @return The width of the string in pixels
	 */
	protected int stringToPixels(final String reference) {
		final StringBuffer buffer= new StringBuffer();
		char character= 0;
		for (int offset= 0; offset < reference.length(); offset++) {
			character= reference.charAt(offset);
			if (character == '\t') {
				for (int tab= 0; tab < fTabs; tab++)
					buffer.append(' ');
			} else
				buffer.append(character);
		}
		return fGraphics.stringExtent(buffer.toString()).x;
	}
	/**
	 * Wraps the comment ranges in this comment region into comment lines.
	 *