diff options
author | Eric Wong <e@yhbt.net> | 2020-01-25 04:44:57 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-27 02:59:09 +0000 |
commit | 256d049b7ac24f40bb1df691fe014853b75bf491 (patch) | |
tree | 8df6dbb920dee3b13b552c5536959ebce910bfd8 /lib/PublicInbox/WwwAtomStream.pm | |
parent | c3d8c3df9f91aead9f6c24e1402b24e02c6a6def (diff) | |
download | public-inbox-256d049b7ac24f40bb1df691fe014853b75bf491.tar.gz |
Get rid of the confusingly named {rv} and {tip} fields and unify them into {obuf} for readability. {obuf} usage may be expanded to more areas in the future. This will eventually make it easier for us to experiment with alternative buffering schemes.
Diffstat (limited to 'lib/PublicInbox/WwwAtomStream.pm')
-rw-r--r-- | lib/PublicInbox/WwwAtomStream.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index cb7ffe35..d142a469 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -140,9 +140,11 @@ sub feed_entry { "<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, $ctx) . - '</pre></div></content></entry>'; + qq(<pre\nstyle="white-space:pre-wrap">); + $ctx->{obuf} = \$s; + PublicInbox::View::multipart_text_as_html($mime, $href, $ctx); + delete $ctx->{obuf}; + $s .= '</pre></div></content></entry>'; } sub feed_updated { |