瀏覽代碼

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

Antialize 15 年之前
父節點
當前提交
ebd423eac6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 		for(QVector<QString>::const_iterator i = h->argn.constBegin(); i != h->argn.constEnd(); ++i)
 			fprintf(fd," \\fI<%s>\\fR", S(*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() {
 	void endSwitch() {