]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
Add structured output formatter for JSON and plain text (but don't use them yet).
authorcraven@gmx.net <craven@gmx.net>
Mon, 23 Jul 2012 10:39:45 +0000 (12:39 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 24 Jul 2012 12:26:59 +0000 (09:26 -0300)
Using the new structured printer support in sprinter.h, implement
sprinter_json_create, which returns a new JSON structured output
formatter. The formatter prints output similar to the existing JSON, but
with differences in whitespace (mostly newlines, --output=summary prints
the entire message summary on one line, not split across multiple lines).

Also implement a "structured" formatter for plain text that prints
prefixed strings, to be used with notmuch-search.c plain text output.


No differences found