X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Ftext2html.c;fp=webcit-ng%2Ftext2html.c;h=44053abe88be46e60faa4aa65bc29a6c97f2c0d5;hb=b8c3267b27e97951bb3ae5a918e0f3b77e48c202;hp=9f85e12719478a408f87489b2c7bf59a8c0cb310;hpb=21e4a2e3b67acd7bb12d6646deb0bf159f4fa800;p=citadel.git diff --git a/webcit-ng/text2html.c b/webcit-ng/text2html.c index 9f85e1271..44053abe8 100644 --- a/webcit-ng/text2html.c +++ b/webcit-ng/text2html.c @@ -16,11 +16,8 @@ #include "webcit.h" -/* - * Convert a text/plain message to text/html - */ -StrBuf *text2html(const char *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf * Source) -{ +// Convert a text/plain message to text/html +StrBuf *text2html(const char *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf * Source) { StrBuf *sj = NULL; sj = NewStrBuf(); @@ -36,11 +33,8 @@ StrBuf *text2html(const char *supplied_charset, int treat_as_wiki, char *roomnam } -/* - * Convert a text/x-citadel-variformat message to text/html - */ -StrBuf *variformat2html(StrBuf * Source) -{ +// Convert a text/x-citadel-variformat message to text/html +StrBuf *variformat2html(StrBuf * Source) { StrBuf *Target = NULL; Target = NewStrBuf(); @@ -82,11 +76,9 @@ StrBuf *variformat2html(StrBuf * Source) } } - /* - * Quoted text should be displayed in italics and in a - * different colour. This code understands Citadel-style - * " >" quotes and will convert to
tags. - */ + // Quoted text should be displayed in italics and in a + // different colour. This code understands Citadel-style + // " >" quotes and will convert to
tags. if (i > 0) StrBufCutLeft(Line, i); @@ -99,7 +91,7 @@ StrBuf *variformat2html(StrBuf * Source) if (StrLength(Line) == 0) continue; - /* Activate embedded URL's */ + // Activate embedded URL's UrlizeText(Line1, Line, Line2); StrEscAppend(Target, Line1, NULL, 0, 0);