浏览代码

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)
 			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() {