Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative images matter #23

Merged
merged 2 commits into from
Dec 25, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Check against EMFILE limits
  • Loading branch information
gjtorikian committed Dec 25, 2013
commit f7b36a131a3ab2205f4a007e7836115a95b99ee3
1 change: 1 addition & 0 deletions lib/html/proofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def run

def self.create_nokogiri(path)
path << "/index.html" if File.directory? path # support for Jekyll-style links
content = File.open(path, "rb") {|f| f.read }
Nokogiri::HTML(File.read(path))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Nokogiri::HTML(content), ugh.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃

end

Expand Down