-
-
Notifications
You must be signed in to change notification settings - Fork 40
add SVG output #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add SVG output #112
Conversation
gitfame/_gitfame.py
Outdated
rows = table.split('\n') | ||
return ('<svg xmlns="http://www.w3.org/2000/svg"' | ||
f' width="{len(rows[0]) / 2 + 1}em" height="{len(rows)}em">' | ||
'<text x="0" y="-0.5em" font-size="15"' | ||
' font-family="monospace" style="white-space: pre">' + | ||
''.join(f'<tspan x="0" dy="1em">{row}</tspan>' | ||
for row in rows) + '</text></svg>') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if worth opening an PR on https://github.com/astanin/python-tabulate
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 85.11% 83.67% -1.45%
==========================================
Files 2 2
Lines 383 392 +9
Branches 100 105 +5
==========================================
+ Hits 326 328 +2
- Misses 48 52 +4
- Partials 9 12 +3 🚀 New features to boost your workflow:
|
/tag v3.1.0 7d0598e |
--format=svg
(fixes svg format #110)--min=<val>
for truncating table rows on value of--sort=<key>
core22
->core24
Live server (https://git-fame.cdcl.ml/docs) for public repos: