Ver código fonte

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.
Thomas Waldmann 7 anos atrás
pai
commit
1f5b8c9219
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      setup.py

+ 2 - 0
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: