') + of.write('\t
') of.write(note.get()) of.write('
\n') - of.write('\t') if self.email != '': - msg = _('Created for %(author)s\n') % { + msg = _('Created for %(author)s\n') % { 'email' : self.email, 'author' : self.author} else: msg = _('Created for %(author)s\n') % {'author' : self.author} - of.write('%s' % msg) - of.write(' \n') # end GRAMPSinfo - of.write(' \n') # end header + of.write('%s
\n' % msg) + of.write('\n') # end header # adjust the months being created if self.partyear is True # and year is eequal to current year, then start_month is current month @@ -619,22 +621,22 @@ class WebCalReport(Report): if not self.multiyear: th_txt = '%s %d' % (month_name, year) of.write('\n\n' % month_name) - of.write('%s | \n' % th_txt) - of.write('
---|
%s | \n' % th_txt) + of.write('\t\t||||||
---|---|---|---|---|---|---|
%s | \n' % (dayclass, get_name_for_daycol(day_col))) - of.write('%s | \n' % (dayclass, get_name_for_daycol(day_col))) + of.write('\t\t\n') + of.write('\t\n') # begin table body - of.write(' \n') + of.write('\t\n') # Compute the first day to display for this month. # It can also be a day in the previous month. @@ -659,7 +661,7 @@ class WebCalReport(Report): nweeks = len(monthinfo) for week_row in range(0, nweeks): week = monthinfo[week_row] - of.write('|||||
\n' % specclass) - - # span class is used here to differentiate between previous/next days versus calendar days - of.write(' %d\n' % specday) - of.write(' | \n') + of.write('\t\t\t\t\n' % (day, dayclass))
- of.write(' %d \n' % day)
- of.write(' | \n')
+ of.write('\t\t\t\n' % (day, dayclass))
+ of.write('\t\t\t\t %d \n' % day)
+ of.write('\t\t\t | \n')
else:
thisday = datetime.date.fromordinal(current_ord)
- of.write(' \n'
+ of.write('\t\t\t\t\n'
% (shrt_month, day, lng_month, shrt_month, day, self.ext, shrt_month, day))
- of.write(' %d \n' % day)
+ of.write('\t\t\t\t\t%d \n' % day)
+ of.write('\t\t\t\t\n')
# WebCal
elif cal == 'wc':
- of.write(' %d \n' % day)
+ of.write('\t\t\t\t%d \n' % day)
# year_glance() and print_page() both need this to itemize the list
self.one_day(of, evt_date, cal, holiday_list, bday_anniv_list)
@@ -715,21 +716,21 @@ class WebCalReport(Report):
# no holiday/ bday/ anniversary this day
else:
of.write('class="%s">\n' % dayclass)
- of.write(' %d \n' % day)
+ of.write('\t\t\t\t%d \n' % day)
# no holiday/ bday/ anniversary this month
else:
of.write('class="%s">\n' % dayclass)
- of.write(' %d \n' % day)
+ of.write('\t\t\t\t%d \n' % day)
- # close the day/ column
- of.write(' | \n')
+ # close the day/ column
+ of.write('\t\t\t\n')
# change day number
current_ord += 1
# close the week/ row
- of.write('
\n') - of.write(_(' This calendar is meant to give you access to all your data at a glance ' - 'compressed into one page. Clicking on a red square will take you to a ' + of.write('
\n') + of.write(_('This calendar is meant to give you access to all your data at a glance ' + 'compressed into one page. Clicking on a red square will take you to a ' 'page that shows all the events for that date!\n')) - of.write('
\n\n') + of.write('\n\n') for month in range(self.start_month, (self.end_month + 1)): @@ -1103,25 +1089,25 @@ class WebCalReport(Report): # Note. The week rows are filled up to make them all 6 weeks long. nweeks = len(calendar.monthcalendar(self.year, month)) for i in range(nweeks+1, 7): - of.write('