--- category-template.php.orig	2007-10-09 18:05:18.000000000 +0100
+++ category-template.php	2007-10-09 18:05:13.000000000 +0100
@@ -372,13 +372,14 @@
 
 	$rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';
 
+	$c = 0;
+
 	foreach ( $counts as $tag => $count ) {
 		$tag_id = $tag_ids[$tag];
 		$tag_link = clean_url($tag_links[$tag]);
+		$tag_size = round($smallest + ( ( $count - $min_count ) * $font_step ),0);
 		$tag = str_replace(' ', '&nbsp;', wp_specialchars( $tag ));
-		$a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "'$rel style='font-size: " .
-			( $smallest + ( ( $count - $min_count ) * $font_step ) )
-			. "$unit;'>$tag</a>";
+		$a[] = '<a href="' . $tag_link . '" class="tag-link-' . $tag_id . ' tag-cloud-item-' . ++$c . ' tag-cloud-size-' . $tag_size . '" title="' . attribute_escape( sprintf( __('%d topics'), $count ) ) . '"' . $rel . ' style="font-size: ' . $tag_size . $unit . ';">' . $tag . '</a>';
 	}
 
 	switch ( $format ) :
