From: Tim Vaughan Date: Mon, 20 May 2019 21:55:17 +0000 (+0200) Subject: Generated XPMs are now finally valid. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=0485fc7eb91c40caa0f80cb0389a53655974052f;p=sixel.git Generated XPMs are now finally valid. --- diff --git a/sixel.el b/sixel.el index 8147c8f..6626e1d 100644 --- a/sixel.el +++ b/sixel.el @@ -141,8 +141,8 @@ representation of SIXEL-IMAGE." (elt colour 3)) "\"")) colour-map) - ",") - "\",\n" + ",\n") + ",\n" "\"-- c #000000\""))) (defun sixel-image-to-xpm-pixels (sixel-image) @@ -174,7 +174,7 @@ of SIXEL-IMAGE." (sixel-image (sixel-process-data data-string))) (concat "/* XPM */" - "static char * pixmap = {" + "static char * pixmap[] = {" (sixel-image-to-xpm-values sixel-image) ",\n" (sixel-image-to-xpm-colours sixel-image) ",\n" (sixel-image-to-xpm-pixels sixel-image) "};")))