doc: Update Kconfig documentation tool 'genrest'

Updates the 'genrest' documentation tool to fix the following types of
warnings and errors:
	WARNING: Field list ends without a blank line; unexpected unindent.
	WARNING: Block quote ends without a blank line; unexpected unindent.
	ERROR: Unknown target name: "<insert kconfig option here>"

Change-Id: I926afcab24a3032923b470dd31ac6ae11d0fc689
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-11-26 14:52:23 -05:00 committed by Anas Nashif
parent b858a99f7b
commit 3fc5e279d5
1 changed files with 4 additions and 4 deletions

View File

@ -1685,7 +1685,7 @@ class Config(object):
selects_str_rows.append(" :ref:`CONFIG_{0}`".format(target.name))
else:
selects_str_rows.append(
" {0}_ if {1}".format(target.name,
" :ref:`CONFIG_{0}` if {1}".format(target.name,
self._expr_val_str(cond_expr)))
selects_str = "\n * "
selects_str += "\n * ".join(selects_str_rows)
@ -1701,7 +1701,7 @@ class Config(object):
":Is from env.: " + BOOL_STR[sc.is_from_env],
":Is special: " + BOOL_STR[sc.is_special_] + "\n")
if sc.ranges:
res += _lines("Ranges:", ranges_str + "\n")
res += _lines(":Ranges:", ranges_str + "\n")
res += _lines(":Prompts:",
prompts_str,
":Default values:",
@ -1851,7 +1851,7 @@ class Config(object):
selects_str_rows.append(" :ref:`CONFIG_{0}`".format(target.name))
else:
selects_str_rows.append(
" {0} if {1}".format(target.name,
" :ref:`CONFIG_{0}` if {1}".format(target.name,
self._expr_val_str(cond_expr)))
selects_str = "\n".join(selects_str_rows)
@ -1866,7 +1866,7 @@ class Config(object):
"Is from env. : " + BOOL_STR[sc.is_from_env],
"Is special : " + BOOL_STR[sc.is_special_] + "\n")
if sc.ranges:
res += _lines("Ranges:", ranges_str + "\n")
res += _lines(":Ranges:", ranges_str + "\n")
res += _lines("Prompts:",
prompts_str,
"Default values:",