Make non-wrapping/scrolling table

This commit is contained in:
Hamish Willee
2017-11-27 14:46:18 +11:00
committed by Lorenz Meier
parent c551496a41
commit 6bb3e65d23
@@ -18,7 +18,7 @@ class MarkdownTablesOutput():
result+='\nThe module where these parameters are defined is: *%s*.\n\n' % list(scope_set)[0]
result += '<table style="width: 100%; table-layout:fixed; font-size:1.5rem;">\n'
result += '<table style="width: 100%; table-layout:fixed; font-size:1.5rem; overflow: auto; display:block;">\n'
result += ' <colgroup><col style="width: 23%"><col style="width: 46%"><col style="width: 11%"><col style="width: 11%"><col style="width: 9%"></colgroup>\n'
result += ' <thead>\n'
result += ' <tr><th>Name</th><th>Description</th><th>Min > Max (Incr.)</th><th>Default</th><th>Units</th></tr>\n'
@@ -59,7 +59,7 @@ class MarkdownTablesOutput():
if name == code:
name = ""
code='<strong id="%s" style="white-space: nowrap;">%s</strong>' % (code, code)
code='<strong id="%s">%s</strong>' % (code, code)
if reboot_required:
reboot_required='<p><b>Reboot required:</b> %s</p>\n' % reboot_required