foxygit / doom Log in
commit ad027ef6dbfeebabe0e6701eec968e9d474e497f
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Wed Mar 25 16:06:11 2015 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Wed Mar 25 16:06:11 2015 -0700

    man: Use \- to denote dashes. Fixes #512
---
 man/docgen | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/man/docgen b/man/docgen
index d9535be8..3b11ad8c 100755
--- a/man/docgen
+++ b/man/docgen
@@ -425,6 +425,8 @@ def manpage_output(targets, template_file):
     for t in targets:
         content += t.manpage_output() + "\n"

+    content = content.replace("-", "\\-")
+
     print_template(template_file, content)

 def wiki_output(targets, template):