X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui.c;h=865ed658afc4197f4ba29ce5344be38fcbd48bad;hb=73d23e6bddcc4d1b6d46a31307ca56f586b541ad;hp=dbe0a19ced1d1da9e2d588a2498dfc931371ee65;hpb=77b17730de748201537120c683678cf0e0316de2;p=paraslash.git diff --git a/gui.c b/gui.c index dbe0a19c..865ed658 100644 --- a/gui.c +++ b/gui.c @@ -294,9 +294,9 @@ static int align_str(WINDOW* win, char *str, unsigned int len, str[len] = '\0'; num = 0; } - /* replace newlines by spaces */ + /* replace control characters by spaces */ for (i = 0; i < len && str[i]; i++) { - if (str[i] == '\n') + if (str[i] == '\n' || str[i] == '\r' || str[i] == '\f') str[i] = ' '; } if (align == LEFT) {