diff --git a/herbe.c b/herbe.c index 6aa8dfc..fa62a49 100644 --- a/herbe.c +++ b/herbe.c @@ -46,8 +46,10 @@ int get_max_len(char *body, XftFont *font, int max_text_width) } for (int i = 0; i < eol; i++) - if (body[i] == '\n') + if (body[i] == '\n') { + body[i] = ' '; return ++i; + } if (info.width < max_text_width) return eol;