From 6c26b12a39021f65117e5d07047516d7599d3f06 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Fri, 18 Jun 2010 11:02:49 -0700 Subject: [PATCH] Revert "Bugfix: $alignr only worked on the first line of $execp, $execpi, $lua and $lua_parse" This reverts commit 691036e3c37abc072e45ec84a35d0567a3702599. --- src/conky.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/conky.c b/src/conky.c index a289172..bf372c3 100644 --- a/src/conky.c +++ b/src/conky.c @@ -2380,7 +2380,13 @@ void generate_text_internal(char *p, int p_max_size, #ifdef HAVE_ICONV iconv_convert(&a, buff_in, p, p_max_size); #endif /* HAVE_ICONV */ - substitute_newlines(p, a - 2); + if (obj->type != OBJ_text && obj->type != OBJ_execp && obj->type != OBJ_execpi +#ifdef HAVE_LUA + && obj->type != OBJ_lua && obj->type != OBJ_lua_parse +#endif /* HAVE_LUA */ + ) { + substitute_newlines(p, a - 2); + } p += a; p_max_size -= a; (*p) = 0; -- 1.7.9.5