diff options
author | Eric Wong <e@80x24.org> | 2018-01-26 21:54:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-01-26 21:54:00 +0000 |
commit | 5a2891dc8a0270af2e5cca0964bb862556b61d20 (patch) | |
tree | b6899b412b37dc4a3d163c5312da49e5c34d2ca4 | |
parent | 34031de0b4d2b71cd33e36fdba773a828c620d49 (diff) | |
download | public-inbox-5a2891dc8a0270af2e5cca0964bb862556b61d20.tar.gz |
This can allow streaming parsers (SAX) to work a little more efficiently as they can handle/discard all the metadata before the big content.
-rw-r--r-- | lib/PublicInbox/WwwAtomStream.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |