Skip to content

Commit

Permalink
fix epub parts with parts. one test failing. needs work.
Browse files Browse the repository at this point in the history
features/multi_part.feature:249
  • Loading branch information
ambtus committed Jun 6, 2011
1 parent e85aa4f commit b31434b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/downloads/_download_part.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
- unless part.notes.blank?
.notes=raw part.formatted_notes

- unless part.clean_html.blank?
- if part.parts.blank?
.content{:style=> "page-break-before:always"}
=raw part.clean_html
- else
- for subpart in part.parts
%h4{:style=> "page-break-before:always"}= subpart.title
=raw subpart.clean_html

0 comments on commit b31434b

Please sign in to comment.