aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f61735711..6973ea430 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;
}