Merge ~jsseidel/maas:jsseidel-cli-help-format-fix into maas:master
Proposed by
Spencer Seidel
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | 4f2d169a4a57c5047a7f81995113754c96a3bf3f |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~jsseidel/maas:jsseidel-cli-help-format-fix |
Merge into: | maas:master |
Diff against target: |
49 lines (+16/-11) 1 file modified
src/maasserver/api/doc.py (+16/-11) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Approve | ||
Andres Rodriguez (community) | Approve | ||
Review via email: mp+359080@code.launchpad.net |
Commit message
Fixed incorrect formatting of CLI help for docstrings containing API annotations.
Description of the change
If empty lines were present between @param tags in an annotated API docstring, the resulting CLI help would not be correctly formatted. Empty lines would result in CLI help that looked like this:
----snip
:param foo: some description
:type foo: unicode
:param nextfoo: the next param's description
:type nextfoo: unicode
----snip
This is because annotation tag description fields were not being rstripped before output.
Now, regardless of empty lines, the CLI format should be consistently formatted.
To post a comment you must log in.
lgtm!