lib/csl/locale.rb in csl-1.4.1 vs lib/csl/locale.rb in csl-1.4.2

- old
+ new

@@ -104,12 +104,11 @@ locale, attributes, options = nil, {}, nil when 1 if arguments[0].is_a?(Hash) arguments[0] = arguments[0].symbolize_keys - locale = arguments[0].delete(:lang) || - arguments[0].delete(:'xml:lang') + locale = arguments[0].delete(:lang) || arguments[0].delete(:'xml:lang') attributes, options = arguments else attributes, locale, options = {}, *arguments end @@ -119,10 +118,10 @@ raise ArgumentError, "wrong number of arguments (#{arguments.length} for 0..2)" end super(attributes, &nil) - set(locale) unless locale.nil? + set(locale) unless locale.blank? unless options.nil? children[:'style-options'] = StyleOptions.new(options) end