Method: Vpim.decode_text
- Defined in:
- lib/vpim/rfc2425.rb
.decode_text(v) ⇒ Object
Convert RFC 2425 text into a String. \ -> \ n -> NL N -> NL , -> , ; -> ;
I’ve seen double-quote escaped by iCal.app. Hmm. Ok, if you aren’t supposed to escape anything but the above, everything else is ambiguous, so I’ll just support it.
252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/vpim/rfc2425.rb', line 252 def Vpim.decode_text(v) # :nodoc: # FIXME - I think this should trim leading and trailing space v.gsub(/\\(.)/) do case $1 when 'n', 'N' "\n" else $1 end end end |