瀏覽代碼

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.

(cherry picked from commit 1f5b8c9219eb5e0d8c4799e8e3c984c6073d6f68)
Thomas Waldmann 7 年之前
父節點
當前提交
747ada77e6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      setup.py

+ 2 - 0
setup.py

@@ -651,6 +651,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: