def tag_format(tag, value)
      return "" if value.blank?
      
      raise ArgumentError.new("Illegal RIS tag") unless tag =~ /[A-Z][A-Z0-9]/
      
      # "T2" seems to be the only "journal name field", which is
      # mentioned along with these others as not being allowed to contain
      # asterisk. 
      if ["AU", "A2", "A3", "A4", "KW", "T2"].include? tag
        value = value.gsub("*", " ")
      end
      
      return "\r\n#{tag}  - #{value}"
    end
def tag_format(tag, value)
      return "" if value.blank?
      
      raise ArgumentError.new("Illegal RIS tag") unless tag =~ /[A-Z][A-Z0-9]/
      
      # "T2" seems to be the only "journal name field", which is
      # mentioned along with these others as not being allowed to contain
      # asterisk. 
      if ["AU", "A2", "A3", "A4", "KW", "T2"].include? tag
        value = value.gsub("*", " ")
      end
      
      return "\r\n#{tag}  - #{value}"
    end
Formats refworks tag/value line and returns it.

 Returns empty string if you pass in an empty value though.

 "Each six-character tag must be in the following format:
 "<upper-case letter><upper-case letter or number><space><space><dash><space>"

 "Each tag and its contents must be on a separate line,
 preceded by a "carriage return/line feed" (ANSI 13 10)."

 "Note, however, that the asterisk (character 42)
 is not allowed in the author, keywords or periodical name fields."

 The spec also seems to say ascii-only, but I don't think that's true
 for actually existing software, we do utf-8.

 Refworks MAY require unicode composed normalization if it accepts utf8
 at all. but not doing that yet. http://bibwild.wordpress.com/2010/04/28/refworks-problems-importing-diacritics/