util/optionlist: show location of a comment

Change-Id: Ib417f435011f0331a1b0228734874ef0a62fb587
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/26945
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Patrick Georgi 2018-06-07 13:59:14 +02:00 committed by Patrick Georgi
parent 446f77daad
commit db693b44aa
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def readfile(filename):
helplen = len(i[:i.find(words[0])].expandtabs())
elif words[0] == "comment":
sys.stdout.write("<tr bgcolor=\"#eeeeee\">\n")
sys.stdout.write("<td></td><td></td><td>(comment)</td><td></td><td>%s</td></tr>\n" % htmlescape(zapquotes(words[1])))
sys.stdout.write("<td></td><td>%s</td><td>(comment)</td><td></td><td>%s</td></tr>\n" % (source, htmlescape(zapquotes(words[1]))))
elif words[0]=="menu":
if len(words)>1:
temp = htmlescape(zapquotes(words[1]))