[Fix #342] Creating patches with literal color errors

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>