Make it prettier

This commit is contained in:
Andrew Pamment 2017-03-30 23:28:46 +10:00
parent a98c5a3fe0
commit fa3af4fe78
2 changed files with 7 additions and 2 deletions

View File

@ -220,3 +220,8 @@
display: table-column; display: table-column;
width: 200px; width: 200px;
} }
.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); strcat(page, buffer);
len += strlen(buffer); len += strlen(buffer);
sprintf(buffer, "<div id=\"msgbody\">\n"); sprintf(buffer, "<div id=\"msgbody\"><pre>\n");
if (len + strlen(buffer) > max_len - 1) { if (len + strlen(buffer) > max_len - 1) {
max_len += 4096; max_len += 4096;
page = (char *)realloc(page, max_len); 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_out);
free(aha_text); free(aha_text);
sprintf(buffer, "</div>\n"); sprintf(buffer, "</pre></div>\n");
if (len + strlen(buffer) > max_len - 1) { if (len + strlen(buffer) > max_len - 1) {
max_len += 4096; max_len += 4096;
page = (char *)realloc(page, max_len); page = (char *)realloc(page, max_len);