misc/plugin/my-ex.rb in tdiary-4.0.2.20140201 vs misc/plugin/my-ex.rb in tdiary-4.0.3
- old
+ new
@@ -23,10 +23,10 @@
when 'p'
section = nil
idx = 1
@diaries[date].each_section do |s|
section = s
- break if idx == frag.to_i
+ break if idx == frag.to_i
idx += 1
end
if section and section.subtitle then
title = h( "#{apply_plugin(section.subtitle_to_html, true)}" )
title.sub!( /^(\[([^\]]+)\])+ */, '' )