Skip to content

Commit

Permalink
Merge branch 'main' into layout
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae authored Jul 23, 2022
2 parents d697501 + dcb53ff commit 0c2708b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scooby/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def __repr__(self):
def _repr_html_(self):
"""Return HTML-rendered version information."""
# Define html-styles
border = "border: 2px solid #fff;'"
border = "border: 1px solid;'"

def colspan(html, txt, ncol, nrow):
r"""Print txt in a row spanning whole table."""
Expand All @@ -279,8 +279,6 @@ def colspan(html, txt, ncol, nrow):
html += "text-align: center; "
if nrow == 0:
html += "font-weight: bold; font-size: 1.2em; "
elif nrow % 2 == 0:
html += "background-color: #ddd;"
html += border + " colspan='"
html += f"{2 * ncol}'>{txt}</td>\n"
html += " </tr>\n"
Expand All @@ -294,7 +292,7 @@ def cols(html, version, name, ncol, i):
html += " <tr>\n"

align = "left" if ncol == 1 else "right"
html += f" <td style='text-align: {align}; background-color: #ccc;"
html += f" <td style='text-align: {align};"
html += " " + border + ">%s</td>\n" % name

html += " <td style='text-align: left; "
Expand All @@ -303,7 +301,7 @@ def cols(html, version, name, ncol, i):
return html, i + 1

# Start html-table
html = "<table style='border: 3px solid #ddd;"
html = "<table style='border: 1.5px solid;"
if self.max_width:
html += f" max-width: {self.max_width}px;"
html += "'>\n"
Expand Down

0 comments on commit 0c2708b

Please sign in to comment.