mwunsch / prism

A Ruby microformat parser and HTML toolkit powered by Nokogiri
MIT License
63 stars 9 forks source link

hcard: Error when single telephone # #1

Closed iamjohnford closed 14 years ago

iamjohnford commented 14 years ago

When a single telephone number is in an hcard the vcard outputs an error since 'phone' is an unknown variable.

Example: prism --hcard http://www.aldenta.com/

In hcard.rb line 117:

@vcard += "\x0D\x0ATEL#{type_value_vcard(phone)}"

should be changed to:

@vcard += "\x0D\x0ATEL#{type_value_vcard(tel)}"

mwunsch commented 14 years ago

Single telephone value to VCARD. Closed by ab82c9f06f82c3d313ad41ab0cb2fed673f02661