More tidying up

This commit is contained in:
Andrew Pamment 2017-03-30 23:39:11 +10:00
parent fa3af4fe78
commit 88bb8c4639
3 changed files with 5 additions and 4 deletions

3
deps/aha/aha.c vendored
View File

@ -332,7 +332,7 @@ char * aha(char *input)
{
for (;line<80;line++)
append_output(&output, " ", &size, &outat);
append_output(&output, "&nbsp;", &size, &outat);
line=0;
momline++;
append_output(&output, "<br />", &size, &outat);
@ -359,6 +359,7 @@ char * aha(char *input)
line=0;
append_output(&output, "<br />", &size, &outat);
break;
case ' ': append_output(&output, "&nbsp;", &size, &outat); break;
default: {
sprintf(minibuf, "%c", c);
append_output(&output, minibuf, &size, &outat);

View File

@ -221,7 +221,7 @@
width: 200px;
}
.msgbody {
#msgbody {
background-color: black;
color: white;
}

View File

@ -456,7 +456,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
}
strcat(page, buffer);
len += strlen(buffer);
sprintf(buffer, "<div id=\"msgbody\"><pre>\n");
sprintf(buffer, "<div id=\"msgbody\">\n");
if (len + strlen(buffer) > max_len - 1) {
max_len += 4096;
page = (char *)realloc(page, max_len);
@ -480,7 +480,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
free(aha_out);
free(aha_text);
sprintf(buffer, "</pre></div>\n");
sprintf(buffer, "</div>\n");
if (len + strlen(buffer) > max_len - 1) {
max_len += 4096;
page = (char *)realloc(page, max_len);