Permalink
Browse files

fixed #271

  • Loading branch information...
1 parent 9552bc5 commit 2fb4c23e33a5e6103727f1b7744e775fd692f4f9 @hsbt hsbt committed Mar 24, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −1 misc/style/etdiary/etdiary_style.rb
  2. +2 −0 spec/core/style/etdiary_style_spec.rb
@@ -97,7 +97,7 @@ def body_to_html
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
@@ -499,6 +499,8 @@
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

0 comments on commit 2fb4c23

Please sign in to comment.