From: Carl Worth Date: Tue, 13 Oct 2009 20:21:47 +0000 (-0700) Subject: xapian-dump: Add a little mor indentation X-Git-Tag: 0.1~889 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a68a023d474931d8dfad27596a16511851b4d063;p=notmuch.git xapian-dump: Add a little mor indentation Just to make it easier to visually identify where one document ends and the next begins. --- diff --git a/xapian-dump.cc b/xapian-dump.cc index 9000567c..0364481f 100644 --- a/xapian-dump.cc +++ b/xapian-dump.cc @@ -44,7 +44,7 @@ print_document_terms (Xapian::Document doc) { Xapian::TermIterator i; - printf ("Terms:\n"); + printf (" Terms:\n"); for (i = doc.termlist_begin (); i != doc.termlist_end (); i++) cout << "\t" << *i << endl; @@ -67,7 +67,7 @@ print_document_values (Xapian::Document doc) int value_no, value_int; double value_float; - printf ("Values:\n"); + printf (" Values:\n"); for (i = doc.values_begin (); i != doc.values_end (); i++) { value_no = i.get_valueno(); @@ -98,7 +98,7 @@ print_document (Xapian::Database db, Xapian::docid id) doc = db.get_document (id); - printf ("Data:\n"); + printf (" Data:\n"); cout << "\t" << doc.get_data () << endl; print_document_terms (doc);