From: Rick L Bird Date: Fri, 6 May 2011 00:38:48 +0000 (-0400) Subject: PennMUSH 1.8.3p11 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=d399eed1e0b9e0af1919d8d4b5b6c9a670f5afd8;p=cobramush.git PennMUSH 1.8.3p11 Author: talvo@talvo.com Date: Tue Nov 24 23:50:39 2009 +0000 Issue 7, align() strips too many spaces when wrapping Fixes #142 --- diff --git a/src/funstr.c b/src/funstr.c index 713f9b2..bf5b29b 100644 --- a/src/funstr.c +++ b/src/funstr.c @@ -1793,9 +1793,6 @@ align_one_line(char *buff, char **bp, int ncols, } ptrs[i] = ptr; } else if (*ptr == '\n') { - for (tptr = ptr; - *tptr && tptr >= ptrs[i] && isspace((unsigned char) *tptr); tptr--) ; - len = (tptr - ptrs[i]) + 1; if (len > 0) { safe_ansi_string(as[i], ptrs[i] - (as[i]->text), len, segment, &sp); }