From 2414bcd787618374d39c67fd481d63a7376e12fa Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 16 Jul 2013 10:58:53 +0000 Subject: [PATCH] ppremake no longer ignores empty lines or one-character lines in #output block --- ppremake/ppCommandFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ppremake/ppCommandFile.cxx b/ppremake/ppCommandFile.cxx index 14ea635742..00e1c4ed6a 100644 --- a/ppremake/ppCommandFile.cxx +++ b/ppremake/ppCommandFile.cxx @@ -462,10 +462,10 @@ read_line(string line) { } } - if (!_in_for && !failed_if() && line.length() > p+1) { - if(line[p+1]==COMMAND_PREFIX) { + if (!_in_for && !failed_if()) { + if (line.length() > p + 1 && line[p + 1] == COMMAND_PREFIX) { // double prefix at start of line indicates echo single prefix, like '\\' in C - line.erase(0,1); + line.erase(0, 1); } return _write_state->write_line(_scope->expand_string(line)); }