Browse Source

Fix bug reported from upstream, use \- in manpage descriptions

Antialize 15 years ago
parent
commit
ebd423eac6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/manoutputter.cc

+ 1 - 1
src/manoutputter.cc

@@ -97,7 +97,7 @@ public:
 		for(QVector<QString>::const_iterator i = h->argn.constBegin(); i != h->argn.constEnd(); ++i)
 			fprintf(fd," \\fI<%s>\\fR", S(*i));
 		
-		fprintf(fd, "\n%s\n",S(h->desc));
+		fprintf(fd, "\n%s\n", S(QString(h->desc).replace("-", "\\-")));
 	}
 	
 	void endSwitch() {