diff --git a/calendar/lib.php b/calendar/lib.php
index 15f87b527ff..74051f43925 100644
--- a/calendar/lib.php
+++ b/calendar/lib.php
@@ -715,7 +715,7 @@ function calendar_top_controls($type, $data) {
$content .= $left.' | ';
$content .= html_writer::tag('span', html_writer::link($calendarlink, userdate($time, get_string('strftimemonthyear')), array('title'=>get_string('monththis','calendar'))), array('class'=>'current'));
$content .= ' | '. $right;
- $content .= "\n";
+ $content .= "\n";
$content .= html_writer::end_tag('div');
break;