Bug 50212 [formatting] Repeated insertion of new line when formatting javadoc comment
Formatting the following javadoc comment multiple times results in the insertion of a new line before 'test' *each* time: /** * <pre></pre> * test */
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentRegion.java
*/
	protected CommentRegion(final CommentFormattingStrategy strategy, final TypedPosition position, final String delimiter) {
		super(position.getOffset(), position.getLength(), position.getType());
		fStrategy= strategy;
		fDelimiter= delimiter;
		fClear= IPreferenceStore.TRUE.equals(fStrategy.getPreferences().get(PreferenceConstants.FORMATTER_COMMENT_CLEARBLANKLINES));
		final ISourceViewer viewer= strategy.getViewer();
		final StyledText text= viewer.getTextWidget();
		fDocument= viewer.getDocument();
		if (text != null && !text.isDisposed()) {
			fGraphics= new GC(text);
			fGraphics.setFont(text.getFont());
			fTabs= text.getTabs();
		} else {
			fGraphics= null;
			fTabs= 4;
		}
		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(new CommentRange(range.getOffset(), range.getLength()));
				fLines.add(line);
			}