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/JavaDocRegion.java
*/
	protected final boolean isSeparateRootTags() {
		return fSeparateRootTags;
	}
	/**
	 * Marks attributed ranges in this javadoc region.
	 * 
	 * @param tags The html tags which confine the attributed ranges
	 * @param key The key of the attribute to set when an attributed range has been recognized
	 * @param html <code>true</code> iff html tags in this attributed range should be attributed too, <code>false</code> otherwise
	 */
	protected void markRanges(final String[] tags, final int key, final boolean html) {
		int level= 0;
		int length= 0;
		String token= null;
		JavaDocRange current= null;
		for (int index= 0; index < tags.length; index++) {
			level= 0;
			for (final Iterator iterator= getRanges().iterator(); iterator.hasNext();) {
				current= (JavaDocRange)iterator.next();
				length= current.getLength();
				if (length > 0) {
					token= getText(current.getOffset(), current.getLength());
					level= current.markRange(token, tags[index], level, key, html);
				}
			}
		}
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentRegion#markRegion()