Skip to content

Commit

Permalink
remove empty table cells
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Feb 23, 2024
1 parent ab9e29a commit 9532f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isp-site/src/utils/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function formatGithubContents(contents, owner, repo, name, language) {
<summary>🕵️ ${s.explore}</summary>\r\n\r\n`;

for (const [i, dir] of dirs.entries()) {
htmlTable += `| ${dir.path} | |\r\n| ---------------- | - |`;
htmlTable += `| ${dir.path} |\r\n| ---------------- |`;

for (const file of files) {
if (file.path.startsWith(dir.path)) {
Expand All @@ -65,7 +65,7 @@ function formatGithubContents(contents, owner, repo, name, language) {
"",
)}](${encodeURI(
`${global.raw}/${owner}/${repo}/${name}/${file.path}`,
)}) | |`;
)}) |`;
}
}
if (i < dirs.length - 1) htmlTable += "\r\n\r\n";
Expand Down

0 comments on commit 9532f0f

Please sign in to comment.