]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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.


No differences found