W
Weber
Hi all
This regexp seems to break ruby-mode parser or something like that (I'm
not an advanced emacs user)
This is the code:
def image_data
src = open("http://www.dilbert.com/").read
soup = BeautifulSoup.new(src)
url = soup.find('img', { :attrs => { 'alt' => /Today's Comic/ } })
open("http://www.dilbert.com" + url['src'], "rb").read
end
I'd appreciate if someone else tried this too. I'm using last version
of ruby-mode.el and Gnu Emacs 22.0.92.1
Cheers
-Weber
This regexp seems to break ruby-mode parser or something like that (I'm
not an advanced emacs user)
This is the code:
def image_data
src = open("http://www.dilbert.com/").read
soup = BeautifulSoup.new(src)
url = soup.find('img', { :attrs => { 'alt' => /Today's Comic/ } })
open("http://www.dilbert.com" + url['src'], "rb").read
end
I'd appreciate if someone else tried this too. I'm using last version
of ruby-mode.el and Gnu Emacs 22.0.92.1
Cheers
-Weber