]> Sergey Matveev's repositories - public-inbox.git/commit
view: consolidate whitespace stripping from messages
authorEric Wong <e@80x24.org>
Tue, 1 Mar 2016 02:45:34 +0000 (02:45 +0000)
committerEric Wong <e@80x24.org>
Tue, 1 Mar 2016 02:45:34 +0000 (02:45 +0000)
commitf5eb6bb83558f3dabdb2fbbf7c1c926a726bfed9
tree00d27bb68dcd0b72ab43a44dde2536137c43d87e
parentcb6cb8a6146c1f7a51b6eb0fe777311c9cc6a245
view: consolidate whitespace stripping from messages

We now keep intermediate blank lines in messages, since it
could be used to denote logical gaps in the message
(such as giving readers a chance to opt out of "spoiler"
information).

However leading blank lines, trailing blank lines, and
trailing whitespace have no useful value we can discern;
so drop those entirely to prevent clients from eating up
vertical whitespace.
lib/PublicInbox/View.pm