extract_swift_flags: strip help strings

This patch strips help strings to avoid niceness gate failures because
of whitespaces.

Change-Id: Ib0c6595c7d30ec7d07f1b6568cbbfbccd63f8689
This commit is contained in:
Gauvain Pocentek 2015-04-28 17:15:23 +02:00
parent b2b72bd32b
commit f012ae9919
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def get_existing_options(optfiles):
continue
if option not in options or 'No help text' in options[option]:
# options[option.split('=',1)[0]] = helptext
options[option] = helptext
options[option] = helptext.strip()
return options
@ -194,7 +194,7 @@ def write_docbook(options, manuals_repo):
tr.append(td)
td = etree.Element('td')
td.text = oslo_opt.help
td.text = oslo_opt.help.strip()
tr.append(td)
write_xml(manuals_repo, section, xml)