From e8b0693cc014c201a600aed32cec71044a72edce Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 13 Jul 2014 15:00:34 +0200 Subject: [colors] fix logging --- src/luaotfload-colors.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua index 67041fe..9be2974 100644 --- a/src/luaotfload-colors.lua +++ b/src/luaotfload-colors.lua @@ -19,6 +19,8 @@ explanation: http://tug.org/pipermail/luatex/2013-May/004305.html --doc]]-- +local log = luaotfload.log +local logreport = log.report local newnode = node.new local nodetype = node.id @@ -81,8 +83,9 @@ local sanitize_color_expression = function (digits) digits = tostring(digits) local sanitized = lpegmatch(valid_digits, digits) if not sanitized then - luaotfload.warning( - "%q is not a valid rgb[a] color expression", digits) + logreport("both", 0, "color", + "%q is not a valid rgb[a] color expression", + digits) return nil end return sanitized -- cgit v1.2.3