lib/vpim/field.rb in vpim-0.695 vs lib/vpim/field.rb in vpim-13.11.11
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8 -*-
=begin
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it
under the same terms as the ruby language itself, see the file COPYING for
@@ -48,11 +49,11 @@
# [<group>.]<name>;<pname>=<pvalue>,<pvalue>:<value>
if group
line << group << '.'
end
-
+
line << name
params.each do |pname, pvalues|
unless pvalues.respond_to? :to_ary
@@ -139,10 +140,10 @@
params = $3
# v2.1 params have no '=' sign, figure out what kind of param it
# is (either its a known encoding, or we treat it as a 'TYPE'
# param).
-
+
if $2 == ""
params = $1
case $1
when /quoted-printable/i
name = 'ENCODING'