Autogenerate config tools: Allow line wrapping

The options have previously been written as "option=default". Let's
add spaces like "opt = default" to allow line wrapping.

Change-Id: Ie1fa1161adfb289feaf0d4bf801866a2dded5cd8
Closes-Bug: #1196187
This commit is contained in:
Andreas Jaeger 2013-12-21 22:38:15 +01:00
parent 64f2f860c8
commit 6708afbef1
1 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ def write_docbook(directory, flags, groups, package_name, verbose=0):
<col width="50%"/>\n\
<thead>\n\
<tr>\n\
<th>Configuration option=Default value</th>\n\
<th>Configuration option = Default value</th>\n\
<th>Description</th>\n\
</tr>\n\
</thead>\n\
@ -265,9 +265,9 @@ def write_docbook(directory, flags, groups, package_name, verbose=0):
opt.help = "No help text available for this option"
if (type(opt).__name__ == "ListOpt" and
opt.default is not None):
opt.default = ",".join(opt.default)
opt.default = ", ".join(opt.default)
groups_file.write('\n <tr>\n\
<td>' + flag_name + '=' + str(opt.default) + '</td>\n\
<td>' + flag_name + ' = ' + str(opt.default) + '</td>\n\
<td>(' + type(opt).__name__ + ') '
+ escape(opt.help) + '</td>\n\
</tr>')