Skip to content

Commit

Permalink
fix: better wrapping in name column (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Dec 22, 2023
1 parent 50ef410 commit e383485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/repo_review/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def to_html(
print(md.render(family_description).strip())
if family_results:
print("<table>")
print("<tr><th>?</th><th>Name</th><th>Description</th></tr>")
print(
'<tr><th>?</th><th nowrap="nowrap">Name</th><th>Description</th></tr>'
)
for result in family_results:
color = (
"orange"
Expand Down Expand Up @@ -79,7 +81,7 @@ def to_html(
)
print(f'<tr style="color: {color};">')
print(f'<td><span role="img" aria-label="{result_txt}">{icon}</span></td>')
print(f"<td>{result.name}</td>")
print(f'<td nowrap="nowrap">{result.name}</td>')
if result.result is None or result.result:
print(f"<td>{description}</td>")
else:
Expand Down

0 comments on commit e383485

Please sign in to comment.