]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Don't join lines with spaces when there's only indent without content.
authorBen Schmidt <none@none>
Wed, 29 Feb 2012 16:34:33 +0000 (03:34 +1100)
committerBen Schmidt <none@none>
Wed, 29 Feb 2012 16:34:33 +0000 (03:34 +1100)
src/prepstdreply.c

index a5e2c70e603db12c4624597da5beadef45186122..dbe736f05f735fa7a0707d59f4ce87ddc3ec2a59 100644 (file)
@@ -1224,7 +1224,8 @@ char *get_processed_text_line(text *txt, int headers,
                                if (*prev == '\0') {
                                        tmp = mystrdup(pos);
                                } else {
-                                       if (txt->wrapmode == WRAP_WORD) {
+                                       if (txt->wrapmode == WRAP_WORD &&
+                                                       len > wrapindentlen) {
                                            tmp = concatstr(3, prev, " ", pos);
                                            len++;
                                            width++;