shr-color.el (shr-color->hexadecimal): Ignore case of color names.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 24 Nov 2010 06:20:57 +0000 (06:20 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 24 Nov 2010 06:20:57 +0000 (06:20 +0000)
lisp/ChangeLog
lisp/shr-color.el

index 69dc194..3e95873 100644 (file)
@@ -1,5 +1,7 @@
 2010-11-24  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * shr-color.el (shr-color->hexadecimal): Ignore case of color names.
+
        * color-lab.el: Add coding cookie.
        (float-pi): Use eval-and-compile.
 
index d611609..1e96567 100644 (file)
@@ -260,8 +260,7 @@ Like rgb() or hsl()."
             (shr-color-hsl-to-rgb-fractions h s l)
           (format "#%02X%02X%02X" (* r 255) (* g 255) (* b 255)))))
      ;; Color names
-     ((assoc color shr-color-html-colors-alist)
-      (cdr (assoc-string color shr-color-html-colors-alist t)))
+     ((cdr (assoc-string color shr-color-html-colors-alist t)))
      ;; Unrecognized color :(
      (t
       nil))))