about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-15 13:58:08 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-15 13:58:08 -0700
commita5840f21020f6d568f82f84afe9fe99047a49f4a (patch)
tree72f8b28e8166268ee38174c2c7160804956297ad /011load.cc
parent7c0d16a79fba21e67d3b46f12f29042f84f997ba (diff)
downloadmu-a5840f21020f6d568f82f84afe9fe99047a49f4a.tar.gz
1566 - fake mouse clicks in scenarios
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/011load.cc b/011load.cc
index 7d9c3047..158e4b10 100644
--- a/011load.cc
+++ b/011load.cc
@@ -17,6 +17,7 @@ vector<recipe_number> load(string form) {
 }
 
 vector<recipe_number> load(istream& in) {
+  in >> std::noskipws;
   vector<recipe_number> result;
   while (!in.eof()) {
 //?     cerr << "===\n"; //? 1
@@ -69,6 +70,7 @@ recipe slurp_recipe(istream& in) {
 }
 
 bool next_instruction(istream& in, instruction* curr) {
+  in >> std::noskipws;
   curr->clear();
   if (in.eof()) return false;
 //?   show_rest_of_stream(in); //? 1
@@ -82,6 +84,7 @@ bool next_instruction(istream& in, instruction* curr) {
     skip_whitespace(in);  if (in.eof()) return false;
 //?     show_rest_of_stream(in); //? 1
     string word = next_word(in);  if (in.eof()) return false;
+//?     cerr << "AAA: " << word << '\n'; //? 1
     words.push_back(word);
     skip_whitespace(in);  if (in.eof()) return false;
   }