From: SHIBATA H. <nul...@cl...> - 2013-03-24 02:56:28
|
SHIBATA Hiroshi 2013-03-24 11:55:05 +0900 (Sun, 24 Mar 2013) New Revision: 2fb4c23e33a5e6103727f1b7744e775fd692f4f9 https://github.com/tdiary/tdiary-core/commit/2fb4c23e33a5e6103727f1b7744e775fd692f4f9 Message: fixed #271 Modified files: misc/style/etdiary/etdiary_style.rb spec/core/style/etdiary_style_spec.rb Modified: misc/style/etdiary/etdiary_style.rb (+1 -1) =================================================================== --- misc/style/etdiary/etdiary_style.rb 2013-03-24 11:54:49 +0900 (a66d614) +++ misc/style/etdiary/etdiary_style.rb 2013-03-24 11:55:05 +0900 (0c91826) @@ -97,7 +97,7 @@ module TDiary if @bodies then r = '' in_p = false - @bodies.join( '' ).each( "\n\n" ) do |p| + @bodies.join('').each_line("\n\n") do |p| if /\A</ !~ p then r << "<p>#{p.chomp}</p>\n" else Modified: spec/core/style/etdiary_style_spec.rb (+2 -0) =================================================================== --- spec/core/style/etdiary_style_spec.rb 2013-03-24 11:54:49 +0900 (27be83b) +++ spec/core/style/etdiary_style_spec.rb 2013-03-24 11:55:05 +0900 (fce8057) @@ -499,6 +499,8 @@ sect2-para0 end it { @section.should_not be_nil } it { @anchorNumber.should eq 2 } + # github issue #271 + it { @section.body_to_html.should eq "<p>sect2-para0\n</p>\n" } end end |