From a98c5a3fe0d6eb62b54a9ca8400fc36bc90ea6b3 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 30 Mar 2017 23:25:37 +1000 Subject: [PATCH] Trying to fix line breaks --- deps/aha/aha.c | 2 +- www_msgs.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/deps/aha/aha.c b/deps/aha/aha.c index ca73453..cb3dd35 100644 --- a/deps/aha/aha.c +++ b/deps/aha/aha.c @@ -335,7 +335,7 @@ char * aha(char *input) append_output(&output, " ", &size, &outat); line=0; momline++; - append_output(&output, "\n", &size, &outat); + append_output(&output, "
", &size, &outat); } else if (c!=8) { diff --git a/www_msgs.c b/www_msgs.c index d724339..d44cc8d 100644 --- a/www_msgs.c +++ b/www_msgs.c @@ -469,14 +469,11 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i memcpy(aha_text, body, jmh.TxtLen); aha_text[jmh.TxtLen] = '\0'; - fprintf(stderr, "Aha IN\n"); aha_out = aha(aha_text); - fprintf(stderr, "Aha OUT %d\n", strlen(aha_out)); while (len + strlen(aha_out) > max_len - 1) { max_len += 4096; page = (char *)realloc(page, max_len); } - fprintf(stderr, "here"); strcat(page, aha_out); len += strlen(aha_out);