Browse Source

Merge "[config-ref] Remove heading and trailing blanks from help"

changes/68/382868/1
Jenkins 5 years ago
committed by Gerrit Code Review
parent
commit
99159d1a4b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      autogenerate_config_docs/autohelp.py

+ 2
- 1
autogenerate_config_docs/autohelp.py View File

@ -478,7 +478,8 @@ def write_files(package_name, options, target, output_format):
if not option.help.strip().startswith('DEPRECATED'):
helptext = 'DEPRECATED: ' + helptext
if getattr(option, 'deprecated_reason', None):
helptext += ' ' + option.deprecated_reason
helptext += ' '
helptext += option.deprecated_reason.lstrip().rstrip()
opt_type = _TYPE_DESCRIPTIONS.get(type(option), 'Unknown')
flags = []


Loading…
Cancel
Save