Printing arguments of “not” expressions on the same line for clarity.
This commit is contained in:
parent
aeb8132fc7
commit
079e2ac539
@ -301,15 +301,8 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Imply<A
|
||||
template<class Argument>
|
||||
inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Not<Argument> ¬_, pddl::detail::PrintContext &printContext)
|
||||
{
|
||||
stream << "(" << colorlog::Keyword("not");
|
||||
|
||||
printContext.indentationLevel++;
|
||||
|
||||
pddl::detail::printIndentedNewline(stream, printContext);
|
||||
stream << "(" << colorlog::Keyword("not") << " ";
|
||||
print(stream, not_.argument, printContext);
|
||||
|
||||
printContext.indentationLevel--;
|
||||
|
||||
return (stream << ")");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user