httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r307278 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
Date Sat, 08 Oct 2005 09:36:49 GMT
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);
 }
 



Mime
View raw message