What I basically have here is a short ruby script (I just started learning) and the purpose of it is to spider-crawl a website and return all the links it finds.
@sites = Array.new
Anemone.crawl("http://www.nemecisco.com/") do |anemone|
anemone.on_every_page do |page|
You may notice that the array is composed of the pages name + something else. I figured a break tag would be enough but Ruby doesn't like this and gives a bad URI exception.
Has anyone any ideas on how to put a line break after each site statement. In the HTML declaration? in the array? Any and all help appreciated.
以上就是Adding html break to each line in Ruby的详细内容，更多请关注web前端其它相关文章！