summaryrefslogtreecommitdiff
path: root/man/docgen
diff options
context:
space:
mode:
authorMike Swanson2015-03-25 16:06:11 -0700
committerMike Swanson2015-03-25 16:06:11 -0700
commitad027ef6dbfeebabe0e6701eec968e9d474e497f (patch)
treeb261630c46d96e366fe019a505f020235d10eb24 /man/docgen
parent70e39d13808d9a6de004bde9570a2db001cc95e4 (diff)
downloadchocolate-doom-ad027ef6dbfeebabe0e6701eec968e9d474e497f.tar.gz
chocolate-doom-ad027ef6dbfeebabe0e6701eec968e9d474e497f.tar.bz2
chocolate-doom-ad027ef6dbfeebabe0e6701eec968e9d474e497f.zip
man: Use \- to denote dashes. Fixes #512
Diffstat (limited to 'man/docgen')
-rwxr-xr-xman/docgen2
1 files changed, 2 insertions, 0 deletions
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):