From: Art Cancro Date: Thu, 24 Apr 2008 21:01:28 +0000 (+0000) Subject: Began work on vNote based display for sticky notes X-Git-Tag: v7.86~2313 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=13a333a6688fabc1f2159f3ba1c08e008183328e Began work on vNote based display for sticky notes --- diff --git a/webcit/notes.c b/webcit/notes.c index 3896d11cf..a3afe0180 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -1,18 +1,16 @@ /* * $Id$ + * */ -/** - * \defgroup StickyNotes Functions which handle "sticky notes" - * \ingroup WebcitDisplayItems - */ -/*@{*/ + #include "webcit.h" #include "groupdav.h" #include "webserver.h" -/** - * \brief display sticky notes - * \param msgnum the citadel mesage number +/* + * display sticky notes + * + * msgnum = Message number on the local server of the note to be displayed */ void display_note(long msgnum, int unread) { @@ -23,7 +21,6 @@ void display_note(long msgnum, int unread) int in_text = 0; int i, len; -// wprintf("\n"); serv_printf("MSG0 %ld", msgnum); serv_getln(buf, sizeof buf); if (buf[0] != '1') { @@ -35,7 +32,7 @@ void display_note(long msgnum, int unread) strcpy(eid, ""); while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { - /** Fill the buffer */ + /* Fill the buffer */ if ( (in_text) && (strlen(notetext) < SIZ-256) ) { strcat(notetext, buf); } @@ -49,31 +46,28 @@ void display_note(long msgnum, int unread) } } - /** Now sanitize the buffer */ + /* Now sanitize the buffer */ len = strlen(notetext); for (i=0; i\n"); wprintf ("\n"); } else { wprintf ("\n"); wprintf ("\n"); } @@ -84,7 +78,7 @@ void display_note(long msgnum, int unread) wprintf("%s
\n", msgnum, display_notetext); } - /** Offer in-place editing. */ + /* Offer in-place editing. */ if (!IsEmptyStr(eid)) { wprintf(""); + } + } +}