in tls-table.py [0:0]
def __print_wiki_entry(code_point, ciphers):
print('|-')
# Determine the style to use; use COMPAT_STYLE_NO_MATCH by default
style = '| style="{style}" '.format(style=COMPAT_STYLE_NO_MATCH)
# Now print all the columns for the various libraries
for order in COMPAT_ORDER:
if code_point in __colorize_lists[order]:
style = '| style="{style}" '.format(style=COMPAT_STYLE[order])
centered_style = '| style="{style} text-align: center;" '.format(style=COMPAT_STYLE[order])
# Print the Hex column
print('! scope=row | {code_point}'.format(code_point=code_point))
# Determine the priority
if code_point in __colorize_lists.get('Old'):
priority = __colorize_lists.get('Old').index(code_point) + 1
else:
priority = None
# Print the columns by priority
if priority:
print('{style}| {priority}'.format(style=centered_style, priority=priority))
else:
print('{style}data-sort-value="1000" | '.format(style=style))
for library in LIBRARY_ORDER:
print('{style}| {cipher}'.format(style=style, cipher=ciphers.get(library, '')))