Permalink
Browse files

Be more specific about selectors

  • Loading branch information...
1 parent fea6d52 commit 841545294b16339390a33cef747a5122d4c506d3 Joe Van Dyk committed Feb 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 news.rb
View
@@ -32,7 +32,7 @@ def style_for_iphone text
html << '<h1 id="pageTitle"><a href="/">Y Combinator</a></h1>'
html << '<ul selected="true">'
- doc.css('tr').each do |row|
+ doc.css('table tr td table tr').each do |row|
if story_title = row.css('td.title > a').first
html << '<li>'
html << "<a href='#{story_title['href']}'>#{story_title.content}</a>"

0 comments on commit 8415452

Please sign in to comment.