There are a couple spots in the ratings portion lib/outputrenderers.php where a manual space is inserted to create a visual separation. See e.g. at line 2233:
$aggregatehtml .= html_writer::tag('span', $countstr, array('id'=>"ratingcount{$rating->itemid}", 'class' => 'ratingcount')).' '; |
This should be done with CSS especially because if this element is wrapped in a link and your theme underlines links you get an ugly underlined space.