Commit 97d06b2f 97d06b2f50b74e40875b27608a82b03efb140524 by Sergey Poznyakoff

(print_hdr_segment): Count a tab for eight spaces.

(builtin_concat): Compress whitespace before further processing.
1 parent 8edc68d0
...@@ -209,7 +209,7 @@ print_hdr_segment (struct mh_machine *mach, char *str, size_t len) ...@@ -209,7 +209,7 @@ print_hdr_segment (struct mh_machine *mach, char *str, size_t len)
209 { 209 {
210 put_string (mach, str, p - str); 210 put_string (mach, str, p - str);
211 put_string (mach, "\n\t", 0); 211 put_string (mach, "\n\t", 0);
212 mach->ind = 1; 212 mach->ind = 8;
213 str = p; 213 str = p;
214 } 214 }
215 else 215 else
...@@ -1768,6 +1768,8 @@ builtin_rcpt (struct mh_machine *mach) ...@@ -1768,6 +1768,8 @@ builtin_rcpt (struct mh_machine *mach)
1768 static void 1768 static void
1769 builtin_concat (struct mh_machine *mach) 1769 builtin_concat (struct mh_machine *mach)
1770 { 1770 {
1771 size_t size = strobj_len (&mach->arg_str);
1772 compress_ws (strobj_ptr (&mach->arg_str), &size);
1771 if (strobj_len (&mach->reg_str) == 0) 1773 if (strobj_len (&mach->reg_str) == 0)
1772 strobj_copy (&mach->reg_str, &mach->arg_str); 1774 strobj_copy (&mach->reg_str, &mach->arg_str);
1773 else 1775 else
......