libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 117e7e72db072089db266f1bc5d70881bb3b49ee
parent 9f1e2fc2b64edbc71e858c5c55ce7049a975bd8f
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 15 Nov 2018 11:36:00 +0100

Reorder CR and LF to follow ascii values ordering

Diffstat:
Msrc/loaders/ansi.c | 2+-
Msrc/loaders/pcboard.c | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -32,8 +32,8 @@ #define ANSI_SEQUENCE_MAX_LENGTH 14 -#define CR '\r' #define LF '\n' +#define CR '\r' #define TAB '\t' #define SUB 26 diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -19,8 +19,8 @@ #include "fonts.h" #include "output.h" -#define CR '\r' #define LF '\n' +#define CR '\r' #define TAB '\t' #define SUB 26 @@ -75,12 +75,12 @@ int ansilove_pcboard(struct ansilove_ctx *ctx, struct ansilove_options *options) } switch (current_character) { - case CR: - break; case LF: row++; column = 0; break; + case CR: + break; case TAB: column += 8; break;