about summary refs log tree commit diff stats
path: root/cpp/tangle/030tangle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tangle/030tangle.cc')
-rw-r--r--cpp/tangle/030tangle.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/tangle/030tangle.cc b/cpp/tangle/030tangle.cc
index 944b12ef..33ff6e28 100644
--- a/cpp/tangle/030tangle.cc
+++ b/cpp/tangle/030tangle.cc
@@ -119,6 +119,11 @@ void process_next_hunk(istream& in, const string& directive, const string& filen
         ++line_number;
         continue;
       }
+      if (cmd == "scenario" && trim(curr_line).empty()) {
+        // ignore empty lines in scenarios
+        ++line_number;
+        continue;
+      }
       hunk.push_back(Line(curr_line, filename, line_number));
       ++line_number;
     }