mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
xapian-dump: Add a little mor indentation
Just to make it easier to visually identify where one document ends and the next begins.
This commit is contained in:
parent
1a6d88697b
commit
a68a023d47
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue