From 87a33551f7ace801737176dc290ce2c2f4787c0d Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Mon, 22 Feb 2010 16:35:25 +0100 Subject: [PATCH] Fix output of $combine when used in combination with $head --- src/combine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/combine.c b/src/combine.c index 58cfd86c..aacef73c 100644 --- a/src/combine.c +++ b/src/combine.c @@ -118,7 +118,7 @@ void print_combine(struct text_object *obj, char *p, struct information *cur) generate_text_internal(buf[i], max_user_text, *objsub, cur); for(j=0; buf[i][j] != 0; j++) { if(buf[i][j] == '\t') buf[i][j] = ' '; - if(buf[i][j] == '\n') { + if(buf[i][j] == '\n' || buf[i][j] == 2) { //Some vars like $head use \002 instead of \n to separate lines buf[i][j] = 0; current[i]->row = strdup(buf[i]+nextstart); if(i==0 && (long)strlen(current[i]->row) > longest) longest = (long)strlen(current[i]->row);