Bug 44035 [formatting] Error in formatting parts of java code snippets in comment
This is for build I20030930. The Java code formatter options are set to Format java code snippets. Taking the following comment: /** * The following is a Java snipet. * * <pre> * while ((size = availableSize(stream, size)) > 0) { * System.out.println("available"); * } * </pre> */ public void test() { } And trying to format it here is what we got: /** * The following is a Java snipet. * * <pre> * while ((size = availableSize(stream, size)) > 0) { * System.out.println("available"); } * </pre> */ public void test() { }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/MultiCommentRegion.java
*/
	protected void markHtmlRanges() {
		
	}
	/**
	 * Marks the comment range with its html tag attributes.
	 * 
	 * @param range
	 *                  The comment range to mark
	 * @param token
	 *                  Token associated with the comment range
	 */
	protected void markHtmlTag(final CommentRange range, final String token) {
		
	}
	/**
	 * Marks the comment range with its javadoc tag attributes.
	 * 
	 * @param range
	 *                  The comment range to mark
	 * @param token
	 *                  Token associated with the comment range
	 */
	protected void markJavadocTag(final CommentRange range, final String token) {
		range.markPrefixTag(COMMENT_ROOT_TAGS, COMMENT_TAG_PREFIX, token, COMMENT_ROOT);
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.comment.CommentRegion#markRegion()
	 */
	protected final void markRegion() {