Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

index.rb error due to whitespace parsing in read! #69

Closed
freeformsystems opened this Issue · 1 comment

2 participants

muji Ryan Tomayko
muji

Really like ronn, it's a great tool but I was sometimes getting an error when declaring external URLs in the index.txt file.

The error is here:

https://github.com/rtomayko/ronn/blob/master/lib/ronn/index.rb#L52

Patch is below:

--- index.rb    2012-12-29 22:23:26.000000000 +0100
+++ index.rb.new    2012-12-29 22:21:19.000000000 +0100
@@ -49,7 +49,7 @@
       data.each_line do |line|
         line = line.strip.gsub(/\s*#.*$/, '')
         if !line.empty?
-          name, url = line.split(/ +/, 2)
+          name, url = line.split(/\s+/, 2)
           @references << reference(name, url)
         end
       end
Ryan Tomayko
Owner

Fixed in c3fd67e. Thanks!

Ryan Tomayko rtomayko closed this
Sebastian Boehm sometimesfood referenced this issue from a commit in sometimesfood/ronn
Ryan Tomayko Allow \t to separate names and urls in index.txt c3fd67e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.