diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2018-01-28 15:35:46 +0100 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2018-01-28 15:38:27 +0100 |
commit | 69a30e8b87fac5888daa26c63663351570e3d533 (patch) | |
tree | f7c4b0a665556c86dcaa4e744f1693bda393375c /src/character.h | |
parent | 97defdfc36d9a83a3081c5f76e249f908645f7ec (diff) | |
download | emacs-69a30e8b87fac5888daa26c63663351570e3d533.tar.gz |
Shorten CSS hex colors when possible
* lisp/textmodes/css-mode.el (css--format-hex): New function for
shortening CSS hex colors when possible.
(css--named-color-to-hex, css--rgb-to-named-color-or-hex): Use it.
* test/lisp/textmodes/css-mode-tests.el (css-test-format-hex): New
tests for 'css--format-hex'.
(css-test-named-color-to-hex, css-test-cycle-color-format): Adjust for
the changes to 'css--named-color-to-hex' and
'css--rgb-to-named-color-or-hex'.
Diffstat (limited to 'src/character.h')
0 files changed, 0 insertions, 0 deletions