show: Simplify new text formatter code
authorAustin Clements <amdragon@MIT.EDU>
Sat, 4 Feb 2012 21:24:26 +0000 (16:24 -0500)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Feb 2012 16:58:20 +0000 (11:58 -0500)
commitc0cd09041208abb6d641279c9ae453e6f2fdf4db
treeca61ccbba76eba73794c534521e621f64b5a127f
parent85fe286b85bda6cddf509308b967f13f44f01331
show: Simplify new text formatter code

This makes the text formatter take advantage of the new code
structure.  The previously duplicated header logic is now unified,
several things that we used to compute repeatedly across different
callbacks are now computed once, and the code is simpler overall and
32% shorter.

Unifying the header logic causes this to format some dates slightly
differently, so the two affected test cases are updated.
notmuch-show.c
test/crypto
test/thread-naming