Ensure help browser only looks at trt files

This commit is contained in:
Kevin Lange 2017-01-10 20:13:26 +09:00
parent 1ca44ea62b
commit 949930b15c

View File

@ -69,8 +69,9 @@ class HelpBrowserWindow(yutani.Window):
d = directory.replace('/usr/share/help/','')
output += "\n<h3>" + d.title() + "</h3>\n\n"
for k in files:
k = d + '/' + k
output += f"➤ <link target=\"{k}\">{self.get_title(k)}</link>\n"
if k.endswith('.trt'):
k = d + '/' + k
output += f"➤ <link target=\"{k}\">{self.get_title(k)}</link>\n"
return output
def special_demo(self):