Skip to content

Commit 3df9421

Browse files
author
Cruz Monrreal
authored
Merge pull request #8993 from yennster/table-md
Apply GitHub style to exporter matrix
2 parents f50403a + 4e466b7 commit 3df9421

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tools/export/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"""
7070

7171
def mcu_ide_list():
72-
"""Shows list of exportable ides
72+
"""Shows list of exportable ides
7373
7474
"""
7575
supported_ides = sorted(EXPORTERS.keys())
@@ -84,10 +84,10 @@ def mcu_ide_matrix(verbose_html=False):
8484
"""
8585
supported_ides = sorted(EXPORTERS.keys())
8686
# Only use it in this function so building works without extra modules
87-
from prettytable import PrettyTable, ALL
87+
from prettytable import PrettyTable, HEADER
8888

8989
# All tests status table print
90-
table_printer = PrettyTable(["Platform"] + supported_ides)
90+
table_printer = PrettyTable(["Platform"] + supported_ides, junction_char="|", hrules=HEADER)
9191
# Align table
9292
for col in supported_ides:
9393
table_printer.align[col] = "c"
@@ -107,15 +107,12 @@ def mcu_ide_matrix(verbose_html=False):
107107
row.append(text)
108108
table_printer.add_row(row)
109109

110-
table_printer.border = True
111-
table_printer.vrules = ALL
112-
table_printer.hrules = ALL
113110
# creates a html page in a shorter format suitable for readme.md
114111
if verbose_html:
115112
result = table_printer.get_html_string()
116113
else:
117114
result = table_printer.get_string()
118-
result += "\n"
115+
result += "\n\n"
119116
result += "Total IDEs: %d\n"% (len(supported_ides))
120117
if verbose_html:
121118
result += "<br>"

0 commit comments

Comments
 (0)