Switch to unified view

a/src/query/recollq.cpp b/src/query/recollq.cpp
...
...
43
#include "transcode.h"
43
#include "transcode.h"
44
#include "textsplit.h"
44
#include "textsplit.h"
45
#include "smallut.h"
45
#include "smallut.h"
46
#include "base64.h"
46
#include "base64.h"
47
47
48
bool dump_contents(RclConfig *rclconfig, TempDir& tmpdir, Rcl::Doc& idoc)
48
bool dump_contents(RclConfig *rclconfig, Rcl::Doc& idoc)
49
{
49
{
50
    FileInterner interner(idoc, rclconfig, tmpdir,
50
    FileInterner interner(idoc, rclconfig, FileInterner::FIF_forPreview);
51
                          FileInterner::FIF_forPreview);
52
    Rcl::Doc fdoc;
51
    Rcl::Doc fdoc;
53
    string ipath = idoc.ipath;
52
    string ipath = idoc.ipath;
54
    if (interner.internfile(fdoc, ipath)) {
53
    if (interner.internfile(fdoc, ipath)) {
55
    cout << fdoc.text << endl;
54
    cout << fdoc.text << endl;
56
    } else {
55
    } else {
...
...
391
                    cout << "/ABSTRACT" << endl;
390
                    cout << "/ABSTRACT" << endl;
392
                }
391
                }
393
            }
392
            }
394
        }
393
        }
395
        if (op_flags & OPT_d) {
394
        if (op_flags & OPT_d) {
396
      static TempDir tmpdir;
397
      if (!tmpdir.ok()) {
398
      cerr << "Can't create temporary directory: " << 
399
          tmpdir.getreason() << endl;
400
      return(1);
401
      }
402
            dump_contents(rclconfig, tmpdir, doc);
395
            dump_contents(rclconfig, doc);
403
        }   
396
        }   
404
    }
397
    }
405
398
406
    return 0;
399
    return 0;
407
}
400
}