From c0b71290a4695d8f9f36b1ccaf567e05627b41fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 23 Jun 2017 01:48:47 +0200 Subject: [PATCH] Minor formatting in PDDL debug output. --- lib/pddlparse/include/pddlparse/ASTOutput.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/pddlparse/include/pddlparse/ASTOutput.h b/lib/pddlparse/include/pddlparse/ASTOutput.h index a471453..3030b56 100644 --- a/lib/pddlparse/include/pddlparse/ASTOutput.h +++ b/lib/pddlparse/include/pddlparse/ASTOutput.h @@ -149,13 +149,11 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Variabl inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Predicate &predicate, pddl::detail::PrintContext &printContext) { - stream << "(" << pddl::detail::Identifier(predicate.declaration->name) << " "; + stream << "(" << pddl::detail::Identifier(predicate.declaration->name); for (const auto &argument : predicate.arguments) { - if (&argument != &predicate.arguments.front()) - stream << " "; - + stream << " "; print(stream, argument, printContext); }