ctil / zargparse

A tool for generating zsh completion files for python command line tools that use argparse
MIT License
11 stars 2 forks source link

Invalid file created when description has a newline character #1

Closed ctil closed 3 years ago

ctil commented 7 years ago

If there's a newline character in the description of the argument parser, the content after the newline character will not be commented out in the completion file. Here is an example:

parser = argparse.ArgumentParser(
    description='First Line\n Second line of description'
)

This will result in a output file with a section line this:

# First line
Second  line of decription
ctil commented 3 years ago

This is the same issue as #9 and is now fixed.