\n"
calendar2_make_cal(year, month).each do |week|
result << "
\n"
week.each do |day|
if day == nil
result << %Q|
\n|
else
date = "%04d%02d%02d" % [year, month, day]
result << %Q|
%s
\n| %
if @diaries[date] == nil
day.to_s
elsif ! @diaries[date].visible?
if show_todo
todos = []
@diaries[date].each_section do |section|
if show_todo === section.subtitle
todos << section.body
end
end
if todos.size != 0
%Q|#{day}|
else
day.to_s
end
else
day.to_s
end
else
subtitles = []
idx = "01"
@diaries[date].each_section do |section|
if section.subtitle
text = section.subtitle_to_html
else
text = section.body_to_html
end
subtitles << %Q|#{idx}. #{@conf.shorten(apply_plugin( text, true )).gsub(/"/, '"')}|
idx.succ!
end
%Q|#{day}|
end
end
end
result << "
\n"
end
result << "\n"
end
#@calendar2_cache = CacheMonth.new(@date, :calender2, method(:calendar2))
#add_update_proc @calendar2_cache.writer