Commit 4b8b6f60 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

shr-color.el (shr-color->hexadecimal): Ignore case of color names.

parent 463bcf11
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.
 
......
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment