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:
parent
64f2f860c8
commit
6708afbef1
|
@ -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>')
|
||||
|
|
Loading…
Reference in New Issue