Skip to content

Commit

Permalink
Merge pull request #367 from nobu/bug/drive-letter
Browse files Browse the repository at this point in the history
Fix for drive letters
  • Loading branch information
hsbt committed Aug 28, 2015
2 parents 31b56ae + d884dfe commit 5b2749c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rdoc/rdoc.rb
Expand Up @@ -353,7 +353,11 @@ def parse_file filename
return unless content

filename_path = Pathname(filename).expand_path
relative_path = filename_path.relative_path_from @options.root
begin
relative_path = filename_path.relative_path_from @options.root
rescue ArgumentError
relative_path = filename_path
end

if @options.page_dir and
relative_path.to_s.start_with? @options.page_dir.to_s then
Expand Down

0 comments on commit 5b2749c

Please sign in to comment.