click-contrib / click-man

Automate generation of man pages for python click applications :star:
MIT License
163 stars 35 forks source link

Formatted text in help text not rendered properly #32

Open carniz opened 4 years ago

carniz commented 4 years ago

An example Click command has the following help text:

def convert(input_file_name, output_file_name):
    """
    Converts the format of the \033[1minput file\033[0m and stores it in the \033[1moutput file\033[0m
    """

When invoking the --help option for the command the words "input file" and "output file" are displayed with a bold font.

However, the man page generated with python3 setup.py --command-packages=click_man.commands man_pages displays it as [1minput file[0m and [1moutput file[0m.