Skip to content

Commit

Permalink
fixed #271
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 24, 2013
1 parent 9552bc5 commit 2fb4c23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion misc/style/etdiary/etdiary_style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions spec/core/style/etdiary_style_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2fb4c23

Please sign in to comment.