From: Eric Wong <e@80x24.org> Date: Fri, 26 Jan 2018 21:54:00 +0000 (+0000) Subject: atom: show metadata before message body X-Git-Tag: v1.0.0~8 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5a2891dc8a0270af2e5cca0964bb862556b61d20;p=public-inbox.git atom: show metadata before message body This can allow streaming parsers (SAX) to work a little more efficiently as they can handle/discard all the metadata before the big content. --- diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index b9c7468f..ecb82bc3 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -129,13 +129,13 @@ sub feed_entry { } $s .= "<entry><author><name>$name</name><email>$email</email>" . "</author>$title$updated" . + qq(<link\nhref="$href"/>). + "<id>$uuid</id>$irt" . qq{<content\ntype="xhtml">} . qq{<div\nxmlns="http://www.w3.org/1999/xhtml">} . qq(<pre\nstyle="white-space:pre-wrap">) . PublicInbox::View::multipart_text_as_html($mime, $href) . - '</pre>' . - qq!</div></content><link\nhref="$href"/>!. - "<id>$uuid</id>$irt</entry>"; + '</pre></div></content></entry>'; } sub feed_updated {