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>
|
template<class Argument>
|
||||||
inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Not<Argument> ¬_, pddl::detail::PrintContext &printContext)
|
inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Not<Argument> ¬_, pddl::detail::PrintContext &printContext)
|
||||||
{
|
{
|
||||||
stream << "(" << colorlog::Keyword("not");
|
stream << "(" << colorlog::Keyword("not") << " ";
|
||||||
|
|
||||||
printContext.indentationLevel++;
|
|
||||||
|
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
|
||||||
print(stream, not_.argument, printContext);
|
print(stream, not_.argument, printContext);
|
||||||
|
|
||||||
printContext.indentationLevel--;
|
|
||||||
|
|
||||||
return (stream << ")");
|
return (stream << ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user