aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2012-03-30 19:13:52 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2012-03-30 19:13:52 +0100
commit5e04be92f6eb3d0895a97d6fbe0a5fa1685c8423 (patch)
tree3969a70f053a7fb465f72f0297b538670bf06575
parentfa007bfd4ed95b28ea4a56621b7645212aa2ea39 (diff)
downloadpaludis-5e04be92f6eb3d0895a97d6fbe0a5fa1685c8423.tar.gz
paludis-5e04be92f6eb3d0895a97d6fbe0a5fa1685c8423.tar.xz
Fix formatting of argumentless usage lines
-rw-r--r--paludis/args/man.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index f617357..6973ea4 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -260,8 +260,12 @@ AsciidocWriter::start_usage_lines()
void
AsciidocWriter::usage_line(const std::string & name, const std::string & line)
{
- _os << "*" << name << " ";
- escape_asciidoc(_os, line);
+ _os << "*" << name;
+ if (! line.empty())
+ {
+ _os << " ";
+ escape_asciidoc(_os, line);
+ }
_os << "*" << endl << endl;
}