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
* Creates a new comment region.
	 * 
	 * @param strategy The comment formatting strategy used to format this comment region
	 * @param position The typed position which forms this comment region
	 * @param delimiter The line delimiter to use in this comment region
	 */
	protected CommentRegion(final CommentFormattingStrategy strategy, final TypedPosition position, final String delimiter) {
		super(position.getOffset(), position.getLength(), position.getType());
		fStrategy= strategy;
		fDelimiter= delimiter;
		fClearBlankLines= fStrategy.getPreferences().get(PreferenceConstants.FORMATTER_COMMENT_CLEARBLANKLINES) == IPreferenceStore.TRUE;
		final ISourceViewer viewer= strategy.getViewer();
		fDocument= viewer.getDocument();
		final StyledText text= viewer.getTextWidget();
		fGraphics= new GC(text);
		fGraphics.setFont(text.getFont());
		fTabs= text.getTabs();
		final ILineTracker tracker= new ConfigurableLineTracker(new String[] { delimiter });
		IRegion range= null;
		CommentLine line= null;
		tracker.set(getText(0, getLength()));
		final int lines= tracker.getNumberOfLines();
		fSingleLine= lines == 1;
		try {
			for (int index= 0; index < lines; index++) {
				range= tracker.getLineInformation(index);
				line= CommentObjectFactory.createLine(this);
				line.append(CommentObjectFactory.createRange(this, range.getOffset(), range.getLength()));
				fLines.add(line);
			}