You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/10/08 11:36:49 UTC

svn commit: r307278 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c

Author: pquerna
Date: Sat Oct  8 02:36:48 2005
New Revision: 307278

URL: http://svn.apache.org/viewcvs?rev=307278&view=rev
Log:
Encode everything in a Giant Pre block, to make sure it renders correctly on all feed readers.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c?rev=307278&r1=307277&r2=307278&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c Sat Oct  8 02:36:48 2005
@@ -70,7 +70,9 @@
                  "%G-%m-%dT%H:%M:%SZ", &extime);
 
     ap_rprintf(r, "<updated>%s</updated>\n", dstr);
-    ap_rputs("<content type=\"text\">\n", r);
+    ap_rputs("<content type=\"xhtml\">\n"
+             "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n"
+             "<pre>\n", r);
 
     load_message(pool, f, m);
     /* Parse multipart information */
@@ -80,7 +82,7 @@
 
     ap_rprintf(r, "%s", mbox_wrap_text(mbox_mime_get_body(pool, m->mime_msg)));
 
-    ap_rputs("</content>\n", r);
+    ap_rputs("\n</pre>\n</div>\n</content>\n", r);
     ap_rputs("</entry>\n", r);
 }