Skip to content

Commit

Permalink
Wrap the hr and h1 tags in divs
Browse files Browse the repository at this point in the history
This fixes issue #7 where the hr width was wider than the text width.
  • Loading branch information
jonathanyeong committed May 25, 2015
1 parent 7a8f5a8 commit 5ae5768
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/trello_newsletter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,10 @@ def html_output(meta, content_lists, callouts, sponsors)
content_lists.each do |list|
template.puts "<tr>"
template.puts "<td valign=\"top\">"
template.puts "<div>"
template.puts "<h1 class=\"h1\">#{list.name}</h1>"
template.puts"<hr />"
template.puts "</div>"
list.cards.each do |card|
post = Post.new(card)
if post.attachment
Expand All @@ -696,8 +698,10 @@ def html_output(meta, content_lists, callouts, sponsors)
end
template.puts "<tr>"
template.puts "<td valign=\"top\">"
template.puts "<div>"
template.puts "<h1 class=\"h1\">#{sponsors.name}</h1>"
template.puts"<hr />"
template.puts "</div>"
sponsors.cards.each do |card|
post = Post.new(card)
stripped_post = post.body.gsub("<p>","").gsub("</p>","")
Expand All @@ -711,7 +715,9 @@ def html_output(meta, content_lists, callouts, sponsors)
template.puts "</tr>"
template.puts "<tr>"
template.puts "<td valign=\"top\">"
template.puts "<div>"
template.puts "<h1 class=\"callout-title\">Join us</h1>"
template.puts "</div>"
callouts.cards.each do |card|
post = Post.new(card)
template.puts "<div class=\"callout\">"
Expand Down

0 comments on commit 5ae5768

Please sign in to comment.