Merge "strip spaces before writing the files"

This commit is contained in:
Jenkins 2013-08-16 20:42:45 +00:00 committed by Gerrit Code Review
commit 7aa0152a31
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#
import os
import string
import sys
import pkgutil
import glob
@ -207,9 +208,9 @@ def write_flags(filepath, flags, name_only=True, verbose=0):
opt.help = "No help text available for this option"
if not name_only:
f.write("|")
f.write("||".join([name,
str(opt.default),
opt.help.replace("\n", " ")]))
f.write("||".join([string.strip(name),
string.strip(str(opt.default)),
string.strip(opt.help.replace("\n", " ")])))
f.write("\n|-\n")
else:
f.write(name + "\n")