Only make extra newline before example for top-level args

This commit is contained in:
Martchus 2017-09-29 20:56:13 +02:00
parent 8750e385f1
commit 027e784f1c
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ void Argument::printInfo(ostream &os, unsigned char indentation) const
arg->printInfo(os, indentation);
}
if (notEmpty(example())) {
if (!subArguments().empty()) {
if (indentation == 2 && !subArguments().empty()) {
os << '\n';
}
os << Indentation(indentation) << "example: ";