mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
Merge pull request #3434 from ThomasWaldmann/fix-prune-man-page
fix building the "borg prune" man page, fixes #3398
This commit is contained in:
commit
7317dc3239
1 changed files with 2 additions and 0 deletions
2
setup.py
2
setup.py
|
@ -655,6 +655,8 @@ def write_examples(self, write, command):
|
||||||
examples = examples.replace(usage_include, '')
|
examples = examples.replace(usage_include, '')
|
||||||
examples = examples.replace('Examples\n~~~~~~~~', '')
|
examples = examples.replace('Examples\n~~~~~~~~', '')
|
||||||
examples = examples.replace('Miscellaneous Help\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 = re.sub('^(~+)$', lambda matches: '+' * len(matches.group(0)), examples, flags=re.MULTILINE)
|
||||||
examples = examples.strip()
|
examples = examples.strip()
|
||||||
if examples:
|
if examples:
|
||||||
|
|
Loading…
Reference in a new issue