[Refdb-cvs] CVS: refdb/src backend-html.c,1.23,1.24 backendn-html.c,1.4,1.5
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2004-01-28 00:19:21
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13543 Modified Files: backend-html.c backendn-html.c Log Message: added div elements Index: backend-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-html.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -U2 -r1.23 -r1.24 --- backend-html.c 22 Jan 2004 01:08:13 -0000 1.23 +++ backend-html.c 28 Jan 2004 00:18:14 -0000 1.24 @@ -227,4 +227,13 @@ } + /* each reference is wrapped in a div element */ + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<div class=\"record\">\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_WARNING, outomem.text); + return NULL; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + /* misuse date_buffer */ if (is_in_list(ptr_rendinfo->dbires, ptr_rendinfo->username) == 1) { @@ -1149,6 +1158,6 @@ } else { - /* finish with a line */ - if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), hr_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + /* finish div */ + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</div>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { LOG_PRINT(LOG_WARNING, outomem.text); return NULL; @@ -1157,4 +1166,12 @@ *(ptr_rendinfo->ptr_ref) = new_ref; } + +/* if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), hr_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { */ +/* LOG_PRINT(LOG_WARNING, outomem.text); */ +/* return NULL; */ +/* } */ +/* else { */ +/* *(ptr_rendinfo->ptr_ref) = new_ref; */ +/* } */ } Index: backendn-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-html.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -U2 -r1.4 -r1.5 --- backendn-html.c 4 Jan 2004 01:55:50 -0000 1.4 +++ backendn-html.c 28 Jan 2004 00:18:15 -0000 1.5 @@ -123,4 +123,12 @@ if (*id) { + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<div class=\"record\">\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_WARNING, outomem.text); + return NULL; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<h2 class='ID'>Note ID:", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { LOG_PRINT(LOG_WARNING, outomem.text); @@ -377,4 +385,12 @@ } + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</div>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_WARNING, outomem.text); + return NULL; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + /* printf("%s\n", ref); */ return new_ref; |