diff --git a/fp-plugins/calendar/plugin.calendar.php b/fp-plugins/calendar/plugin.calendar.php
index 0d3d1e5..9b8778a 100755
--- a/fp-plugins/calendar/plugin.calendar.php
+++ b/fp-plugins/calendar/plugin.calendar.php
@@ -31,10 +31,10 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3,
#Begin calendar. Uses a real
. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
- if($p) $p = ''.($pl ? ''.$p.'' : $p).' ';
- if($n) $n = ' '.($nl ? ''.$n.'' : $n).'';
+ if($p) $p = ''.($pl ? ''.$p.'' : $p).' ';
+ if($n) $n = ' '.($nl ? ''.$n.'' : $n).'';
$calendar = ''."\n".
- ''.$p.($month_href ? ''.$title.'' : $title).$n."\n";
+ ''.$p.($month_href ? ''.$title.'' : $title).$n."\n
";
if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
#if day_name_length is >3, the full name of the day will be printed
@@ -53,7 +53,7 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3,
@list($link, $classes, $content) = $days[$day];
if(is_null($content)) $content = $day;
$calendar .= '' : '>').
- ($link ? ''.$content.'' : $content).' | ';
+ ($link ? ''.$content.'' : $content).'';
}
else $calendar .= "$day | ";
}