summaryrefslogtreecommitdiff
path: root/src/character.h
diff options
context:
space:
mode:
authorSimen Heggestøyl <simenheg@gmail.com>2018-01-28 15:35:46 +0100
committerSimen Heggestøyl <simenheg@gmail.com>2018-01-28 15:38:27 +0100
commit69a30e8b87fac5888daa26c63663351570e3d533 (patch)
treef7c4b0a665556c86dcaa4e744f1693bda393375c /src/character.h
parent97defdfc36d9a83a3081c5f76e249f908645f7ec (diff)
downloademacs-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