mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[plain] Assume that ESC P is sufficient to detect sixel image
Imagick's convert generate some values between 'P' and 'q'. I left it for the future to detect it properly.
This commit is contained in:
parent
a7af080101
commit
5ecf02da29
@ -642,7 +642,7 @@ add_document_line(struct plain_renderer *renderer,
|
|||||||
template_->attr |= pos->attr;
|
template_->attr |= pos->attr;
|
||||||
} else if (line_char == 27) {
|
} else if (line_char == 27) {
|
||||||
#ifdef CONFIG_LIBSIXEL
|
#ifdef CONFIG_LIBSIXEL
|
||||||
if (line_pos + 1 < width && line[line_pos + 1] == 'P' && line_pos + 2 < width && line[line_pos + 2] == 'q') {
|
if (line_pos + 1 < width && line[line_pos + 1] == 'P') { // && line_pos + 2 < width && line[line_pos + 2] == 'q') {
|
||||||
while (1) {
|
while (1) {
|
||||||
char *end = (char *)memchr(line + line_pos + 1, 27, width - line_pos - 1);
|
char *end = (char *)memchr(line + line_pos + 1, 27, width - line_pos - 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user