diff options
author | Tim Harder <radhermit@gmail.com> | 2015-11-22 19:01:02 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2015-11-22 19:01:02 -0500 |
commit | 0f6a163c1eb79c71f0c1aeeef75f2472119f3c89 (patch) | |
tree | a649d2b559b5027616c62d86caa0d5fdf3da31cd | |
parent | pquery: move long description to module (diff) | |
download | pkgcore-0f6a163c1eb79c71f0c1aeeef75f2472119f3c89.tar.gz pkgcore-0f6a163c1eb79c71f0c1aeeef75f2472119f3c89.tar.bz2 pkgcore-0f6a163c1eb79c71f0c1aeeef75f2472119f3c89.zip |
util/commandline: fix handling for multi-line long descriptions
Previously they were being concatenated into a single paragraph in the
man page output.
-rw-r--r-- | pkgcore/util/commandline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgcore/util/commandline.py b/pkgcore/util/commandline.py index 9c4871cc..8f727b02 100644 --- a/pkgcore/util/commandline.py +++ b/pkgcore/util/commandline.py @@ -605,7 +605,7 @@ class ArgumentParser(argparse.ArgumentParser): if description is not None: description_lines = description.split('\n') description = description_lines[0] - self.long_description = ' '.join(description_lines[1:]).strip() + self.long_description = description_lines[1:] super(ArgumentParser, self).__init__( prog=prog, usage=usage, |