Skip to content

Commit

Permalink
fix(outputter): Non-RGB colors shall work with the debug outputter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and alerque committed Jul 15, 2022
1 parent cb51ed5 commit 41fbdf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/debug-output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ SILE.outputters.debug = {

pushColor = function (self, color)
_deprecationCheck(self)
writeline("Push color", _round(color.r), _round(color.g), _round(color.b))
if color.r then
writeline("Push color", _round(color.r), _round(color.g), _round(color.b))
elseif color.c then
writeline("Push color (CMYK)", _round(color.c), _round(color.m), _round(color.y), _round(color.k))
elseif color.l then
writeline("Push color (grayscale)", _round(color.l))
end
end,

popColor = function (self)
Expand Down

0 comments on commit 41fbdf4

Please sign in to comment.