X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fserv_func.c;fp=webcit%2Fserv_func.c;h=6d7dc34c387d7ae34c3d83a7b6aa711fb064e53b;hb=5d04fea41af83718edc10083a943285715483912;hp=0158ca1fbc2b6f93a19779c29cd3333f5ce277f4;hpb=e37a9fed9c7b18e5dec5fcfc9500829907725df3;p=citadel.git diff --git a/webcit/serv_func.c b/webcit/serv_func.c index 0158ca1fb..6d7dc34c3 100644 --- a/webcit/serv_func.c +++ b/webcit/serv_func.c @@ -254,55 +254,6 @@ int GetConnected (void) return 0; } -/* - * Read Citadel variformat text and spit it out as HTML. - * align html align string - */ -inline void fmout(const char *align) -{ - _fmout(WC->WBuf, align); -} - -void _fmout(StrBuf *Target, const char *align) -{ - int intext = 0; - int bq = 0; - char buf[SIZ]; - - StrBufAppendPrintf(Target, "
\n", align); - while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { - - if ((intext == 1) && (isspace(buf[0]))) { - wc_printf("
"); - } - intext = 1; - - /* - * Quoted text should be displayed in italics and in a - * different colour. This code understands Citadel-style - * " >" quotes and will convert to
tags. - */ - if ((bq == 0) && (!strncmp(buf, " >", 2))) { - StrBufAppendBufPlain(Target, HKEY("
"), 0); - bq = 1; - } else if ((bq == 1) && (strncmp(buf, " >", 2))) { - StrBufAppendBufPlain(Target, HKEY("
"), 0); - bq = 0; - } - if ((bq == 1) && (!strncmp(buf, " >", 2))) { - strcpy(buf, &buf[2]); - } - /* Activate embedded URL's */ - url(buf, sizeof(buf)); - - escputs(buf); - StrBufAppendBufPlain(Target, HKEY("\n"), 0); - } - if (bq == 1) { - wc_printf(""); - } - wc_printf("

\n"); -} void FmOut(StrBuf *Target, const char *align, const StrBuf *Source) {