about summary refs log tree commit diff stats
path: root/029debug.cc
diff options
context:
space:
mode:
Diffstat (limited to '029debug.cc')
-rw-r--r--029debug.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/029debug.cc b/029debug.cc
index e185a314..753375cc 100644
--- a/029debug.cc
+++ b/029debug.cc
@@ -9,7 +9,10 @@ case _PRINT: {
   for (long long int i = 0; i < SIZE(ingredients); ++i) {
     if (is_literal(current_instruction().ingredients.at(i))) {
       trace(Primitive_recipe_depth, "run") << "$print: " << current_instruction().ingredients.at(i).name;
-      cout << current_instruction().ingredients.at(i).name;
+      if (has_property(current_instruction().ingredients.at(i), "newline"))
+        cout << '\n';
+      else
+        cout << current_instruction().ingredients.at(i).name;
     }
     else {
       for (long long int j = 0; j < SIZE(ingredients.at(i)); ++j) {