]> code.citadel.org Git - citadel.git/blobdiff - webcit/serv_func.c
* fix issues with room list in firefox 2 (didn't detect console.log properly, again)
[citadel.git] / webcit / serv_func.c
index 5592ca8c0418eaaf85ab22d474fd5da636e78f3a..0e25c28d9d8c2f9cc3593d0b91febfe90728c2e9 100644 (file)
@@ -29,7 +29,7 @@ void get_serv_info(char *browser_host, char *user_agent)
        serv_getln(buf, sizeof buf);
 
        /** Tell the server what kind of richtext we prefer */
-       serv_puts("MSGP text/html|text/plain");
+       serv_puts("MSGP text/calendar|text/html|text/plain");
        serv_getln(buf, sizeof buf);
 
        /*
@@ -170,7 +170,7 @@ void FmOut(StrBuf *Target, char *align, StrBuf *Source)
        long len;
        int intext = 0;
 
-       StrBufAppendPrintf(Target, "<div align=\"%s\">\n", align);
+       StrBufAppendPrintf(Target, "<div class=\"fmout\">\n", align);
        while ((n = StrBufSipLine(Line, Source, &BufPtr), n >= 0) && !done)
        {
                done = n == 0;
@@ -181,7 +181,7 @@ void FmOut(StrBuf *Target, char *align, StrBuf *Source)
                pte = ptr + len;
 
                if ((intext == 1) && (isspace(*ptr))) {
-                       StrBufAppendBufPlain(Target, HKEY("<br />"), 0);
+                       StrBufAppendBufPlain(Target, HKEY("<br>"), 0);
                }
                intext = 1;
                if (isspace(*ptr)) while ((ptr < pte) &&
@@ -219,7 +219,7 @@ void FmOut(StrBuf *Target, char *align, StrBuf *Source)
        }
        for (i = 0; i < bn; i++)                                
                StrBufAppendBufPlain(Target, HKEY("</blockquote>"), 0);
-       StrBufAppendBufPlain(Target, HKEY("</div><br />\n"), 0);
+       StrBufAppendBufPlain(Target, HKEY("</div><br>\n"), 0);
        FreeStrBuf(&Line);
        FreeStrBuf(&Line1);
        FreeStrBuf(&Line2);