More work on wrapping

This commit is contained in:
Andrew Pamment 2017-09-10 22:28:49 +10:00
parent 4ce23deb02
commit 00ba41f13d

View File

@ -961,12 +961,12 @@ int main(int argc, char **argv)
for (i=0;i<unwrapped_quote_len;i++) { for (i=0;i<unwrapped_quote_len;i++) {
if (unwrapped_quote[i] == '\r') { if (unwrapped_quote[i] == '\r') {
if (i > 0) { if (i > 0) {
if (unwrapped_quote[i-1] == ' ') { if (unwrapped_quote[i-1] == ' ' || unwrapped_quote[i-1] == '\r') {
continue; continue;
} }
} }
if (i < unwrapped_quote_len - 1) { if (i < unwrapped_quote_len - 1) {
if (unwrapped_quote[i+1] == ' ') { if (unwrapped_quote[i+1] == ' ' || unwrapped_quote[i+1] == '\r') {
continue; continue;
} }
} }