#include "buffer.h"
#include "author.h"
+#include "BranchList.h"
#include "buffer_funcs.h"
#include "bufferlist.h"
#include "bufferparams.h"
int line = -1;
int begin_header_line = -1;
+ // Initialize parameters that may be/go lacking in header:
+ params().branchlist().clear();
+ params().options.erase();
+ params().float_placement.erase();
+ params().paperwidth.erase();
+ params().paperheight.erase();
+ params().leftmargin.erase();
+ params().rightmargin.erase();
+ params().topmargin.erase();
+ params().bottommargin.erase();
+ params().headheight.erase();
+ params().headsep.erase();
+ params().footskip.erase();
+
while (lex.isOK()) {
lex.next();
string const token = lex.getString();
if (!original_path.empty()) {
string inputpath = os::external_path(original_path);
subst(inputpath, "~", "\\string~");
+ if (inputpath.find(' ') != string::npos)
+ inputpath = '"' + inputpath + '"';
os << "\\makeatletter\n"
<< "\\def\\input@path{{"
<< inputpath << "/}}\n"