From 3d9bf2582f9c08845c0126da67919b2574774959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 23 Jun 2017 01:22:28 +0200 Subject: [PATCH] Fixed format of PDDL debug output. --- lib/pddlparse/include/pddlparse/ASTOutput.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/pddlparse/include/pddlparse/ASTOutput.h b/lib/pddlparse/include/pddlparse/ASTOutput.h index 9e170ee..a471453 100644 --- a/lib/pddlparse/include/pddlparse/ASTOutput.h +++ b/lib/pddlparse/include/pddlparse/ASTOutput.h @@ -344,11 +344,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action if (!action.parameters.empty()) { pddl::detail::printIndentedNewline(stream, printContext); - stream << "(" << colorlog::Keyword(":parameters"); + stream << colorlog::Keyword(":parameters"); printContext.indentationLevel++; pddl::detail::printIndentedNewline(stream, printContext); + stream << "("; print(stream, action.parameters, printContext); stream << ")"; @@ -358,13 +359,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action if (action.precondition) { pddl::detail::printIndentedNewline(stream, printContext); - stream << "(" << colorlog::Keyword(":precondition"); + stream << colorlog::Keyword(":precondition"); printContext.indentationLevel++; pddl::detail::printIndentedNewline(stream, printContext); print(stream, action.precondition.value(), printContext); - stream << ")"; printContext.indentationLevel--; } @@ -372,13 +372,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action if (action.effect) { pddl::detail::printIndentedNewline(stream, printContext); - stream << "(" << colorlog::Keyword(":effect"); + stream << colorlog::Keyword(":effect"); printContext.indentationLevel++; pddl::detail::printIndentedNewline(stream, printContext); print(stream, action.effect.value(), printContext); - stream << ")"; printContext.indentationLevel--; }