From 00ba41f13d1b83a3264645a84639ddd7353faaf7 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 10 Sep 2017 22:28:49 +1000 Subject: [PATCH] More work on wrapping --- utils/magiedit/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index c9e738d..34e60c2 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -961,12 +961,12 @@ int main(int argc, char **argv) for (i=0;i 0) { - if (unwrapped_quote[i-1] == ' ') { + if (unwrapped_quote[i-1] == ' ' || unwrapped_quote[i-1] == '\r') { continue; } } if (i < unwrapped_quote_len - 1) { - if (unwrapped_quote[i+1] == ' ') { + if (unwrapped_quote[i+1] == ' ' || unwrapped_quote[i+1] == '\r') { continue; } }