about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwAtomStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-01-26 21:54:00 +0000
committerEric Wong <e@80x24.org>2018-01-26 21:54:00 +0000
commit5a2891dc8a0270af2e5cca0964bb862556b61d20 (patch)
treeb6899b412b37dc4a3d163c5312da49e5c34d2ca4 /lib/PublicInbox/WwwAtomStream.pm
parent34031de0b4d2b71cd33e36fdba773a828c620d49 (diff)
downloadpublic-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.
Diffstat (limited to 'lib/PublicInbox/WwwAtomStream.pm')
-rw-r--r--lib/PublicInbox/WwwAtomStream.pm6
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 {