Bug 46341 [formatting][implementation] comment line length not correctly applied
(1105 nightly build) when formatting the declaration below, with all default code formatter options (i.e. comment line length = 80), the last word '<code>String</code>' is not correctly moved to anotherline, leaving the last line longer than 80 characters (about 87 characters i think..) /** * Sets the set of identifiers to active activities. * * @param activeActivityIds * the set of identifiers to active activities. This set may be * empty, but it must not be <code>null</code>. If this set * is not empty, it must only contain instances of <code>String</code>. */ void setActiveActivityIds(Set activeActivityIds);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentRegion.java
*                   <code>true</code> iff the indentation should use tabs,
	 *                   <code>false</code> otherwise.
	 * @return The indentation string
	 */
	protected final String stringToIndent(final String reference, final boolean tabs) {
		int space;
		int pixels;
		if (fTextMeasurement != null) {
			pixels= stringToPixels(reference);
			space= fTextMeasurement.computeWidth(" "); 
		} else {
			space= 1;
			pixels= reference.length();
			int index= -1;
			while ((index= reference.indexOf('\t', index+1)) >= 0)
				pixels += fTabs-1;
		}
		final StringBuffer buffer= new StringBuffer();
		final int spaces= pixels / space;
		if (tabs) {
			final int count= spaces / fTabs;
			final int modulo= spaces % fTabs;
			for (int index= 0; index < count; index++)
				buffer.append('\t');
			for (int index= 0; index < modulo; index++)
				buffer.append(' ');
		} else {
			for (int index= 0; index < spaces; index++)
				buffer.append(' ');
		}