diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-26 11:42:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-26 11:42:10 +0200 |
commit | acc3ef398c456c9157443200d42f11e4668fc646 (patch) | |
tree | e695db726b28f199d746df2be1c2c6e31a1432dc /bbot/worker/worker.cxx | |
parent | 6fbb94e01784b72821e976e000fe6d82bedabb66 (diff) |
Get rid of extraneous trailing blank lines in auxiliary environment value
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r-- | bbot/worker/worker.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 8388d03..5f857b0 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -6060,6 +6060,11 @@ parse_auxiliary_environment (const string& s, const char* comment = nullptr) r.push_back (move (line)); } + // Pop the final blank line comment. + // + if (comment != nullptr && r.back () == comment) + r.pop_back (); + return r; } |