Trying to fix line breaks

This commit is contained in:
Andrew Pamment 2017-03-30 23:25:37 +10:00
parent cc5c00a12c
commit a98c5a3fe0
2 changed files with 1 additions and 4 deletions

2
deps/aha/aha.c vendored
View File

@ -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, "<br />", &size, &outat);
}
else if (c!=8)
{

View File

@ -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);