mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add escape sequence support to GUI
Also ensures that CR/LF formatted files remain unaltered when importing Fixes #72 reported by Siniša Sudec
This commit is contained in:
@ -852,7 +852,7 @@ int escape_char_process(struct zint_symbol *symbol, unsigned char *input_string,
|
||||
hex1 = ctoi(input_string[in_posn + 2]);
|
||||
hex2 = ctoi(input_string[in_posn + 3]);
|
||||
if ((hex1 >= 0) && (hex2 >= 0)) {
|
||||
escaped_string[out_posn] += (hex1 << 4) + hex2;
|
||||
escaped_string[out_posn] = (hex1 << 4) + hex2;
|
||||
in_posn += 4;
|
||||
} else {
|
||||
strcpy(symbol->errtxt, "233: Corrupt escape character in input data");
|
||||
|
Reference in New Issue
Block a user