diff --git a/calendar/generate_calendar.php b/calendar/generate_calendar.php index 88ca397..f974f89 100755 --- a/calendar/generate_calendar.php +++ b/calendar/generate_calendar.php @@ -138,7 +138,7 @@ // Output macro for inclusion in paper calendar. printf( "\\newcommand{\\%sBreak%s}{%s--%s}\n", $period_name, - ucfirst( $numwords->toWords( $num_breaks ) ), + str_replace( "-", "", ucfirst( $numwords->toWords( $num_breaks ) ) ), // If the week start and end dates are in the same month, we only // need to output the month name once. ( $week_start->format( 'n' ) == $break_end->format( 'n' ) ) ? $week_start->format( 'j' ) : $week_start->format( 'j M' ), @@ -163,7 +163,7 @@ // Output macro for inclusion in paper calendar. printf( "\\newcommand{\\%sWeek%s}{%s--%s \\\\ %s}\n", $period_name, - ucfirst( $numwords->toWords( $week_number ) ), + str_replace( "-", "", ucfirst( $numwords->toWords( $week_number ) ) ), $week_start->format( 'j' ), $week_end->format( 'j' ), $week_end->format( 'M' ) @@ -174,7 +174,7 @@ // Output macro for inclusion in paper calendar. printf( "\\newcommand{\\%sWeek%s}{%s \\\\ --%s}\n", $period_name, - ucfirst( $numwords->toWords( $week_number ) ), + str_replace( "-", "", ucfirst( $numwords->toWords( $week_number ) ) ), $week_start->format( 'j M' ), $week_end->format( 'j M' ) );