Skip to content

Commit 22bb778

Browse files
another attempt to fix alignment via .cjs file
1 parent 7bdf2ab commit 22bb778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/update_stats.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function renderMarkdown(stats, topRepos) {
178178
// HTML badges (centered). Markdown isn’t parsed inside HTML, so we use <img>.
179179
lines.push(`<p align="center">${renderBadgesHTML(stats)}</p>`);
180180
lines.push("");
181+
lines.push(`<div align="center">`);
181182
lines.push(`<table>`);
182183
lines.push(`<thead>`);
183184
lines.push(`<tr>`);
@@ -202,7 +203,7 @@ function renderMarkdown(stats, topRepos) {
202203
lines.push(`<tr><td>🍴 Forks</td><td align="right"><code>${fmt(forks)}</code></td></tr>`);
203204
lines.push(`</tbody>`);
204205
lines.push(`</table>`);
205-
lines.push("");
206+
lines.push(`</div>`);
206207
lines.push(
207208
`<sub>Updated: ${new Date().toISOString().replace("T", " ").replace("Z", " UTC")}</sub>`
208209
);

0 commit comments

Comments
 (0)