From 1f5b8c9219eb5e0d8c4799e8e3c984c6073d6f68 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 13 Dec 2017 04:33:50 +0100 Subject: [PATCH] fix building the "borg prune" man page, fixes #3398 will fix all ".. highlight:: none" issues (just killing it). also a slight punctuation fix, so there is a dot at the end of the prune man page. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 1eeab0599..40990bddb 100644 --- a/setup.py +++ b/setup.py @@ -655,6 +655,8 @@ class build_man(Command): examples = examples.replace(usage_include, '') examples = examples.replace('Examples\n~~~~~~~~', '') examples = examples.replace('Miscellaneous Help\n------------------', '') + examples = examples.replace('``docs/misc/prune-example.txt``:', '``docs/misc/prune-example.txt``.') + examples = examples.replace('.. highlight:: none\n', '') # we don't support highlight examples = re.sub('^(~+)$', lambda matches: '+' * len(matches.group(0)), examples, flags=re.MULTILINE) examples = examples.strip() if examples: