Trying to fix line breaks
This commit is contained in:
parent
cc5c00a12c
commit
a98c5a3fe0
2
deps/aha/aha.c
vendored
2
deps/aha/aha.c
vendored
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user