Only make extra newline before example for top-level args
This commit is contained in:
parent
8750e385f1
commit
027e784f1c
|
@ -398,7 +398,7 @@ void Argument::printInfo(ostream &os, unsigned char indentation) const
|
||||||
arg->printInfo(os, indentation);
|
arg->printInfo(os, indentation);
|
||||||
}
|
}
|
||||||
if (notEmpty(example())) {
|
if (notEmpty(example())) {
|
||||||
if (!subArguments().empty()) {
|
if (indentation == 2 && !subArguments().empty()) {
|
||||||
os << '\n';
|
os << '\n';
|
||||||
}
|
}
|
||||||
os << Indentation(indentation) << "example: ";
|
os << Indentation(indentation) << "example: ";
|
||||||
|
|
Loading…
Reference in New Issue