[config-ref] Remove heading and trailing blanks from help
Not to break the script with the heading and trailing blanks. It happens at glance with oslo.i18n deprecation messages. Change-Id: I33ab7a815fc092cef2ed0688b0693c23802b23c6
This commit is contained in:
parent
ff558eb3b1
commit
1057a48575
@ -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…
x
Reference in New Issue
Block a user