Removed trailing whitespace from help output

Some of the output help from *-manage CLIs (eg. trove-manage) have
whitespace at the end of the line.
This causes the gate-openstack-manuals-tox-checkniceness test to fail
on the generated .xml files.

Trailing white-space is now stripped off by the tool before writing the
.xml file.

Change-Id: I94aa3a02f7bbe2e88beb510551a2aff76ed24f8a
Closes-Bug: #1342988
This commit is contained in:
Peter Stachowski 2014-07-15 10:23:17 -04:00
parent 930256f72a
commit de741f0a2e
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ def generate_command(os_command, os_file):
next_line_screen = False
in_screen = True
elif len(line) > 0:
os_file.write("\n%s" % (xline))
os_file.write("\n%s" % xline.rstrip())
if in_screen:
os_file.write("</computeroutput></screen>\n")