Skip to content

Commit

Permalink
feat: correcting spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed May 3, 2024
1 parent c957265 commit d560e9d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
17 changes: 9 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33895,13 +33895,14 @@ const htmlEncoding = string => {

const getTemplate = (userID, imageSize, name, avatarUrl) => {
return `
<td align="center">
<a href="https://github.com/${userID}">
<img src="${avatarUrl}" width="${imageSize};" alt="${userID}"/>
<br />
<sub><b>${name ? name : userID}</b></sub>
</a>
</td>`;
<td align="center">
<a href="https://github.com/${userID}">
<img src="${avatarUrl}" width="${imageSize};" alt="${userID}"/>
<br />
<sub><b>${name ? name : userID}</b></sub>
</a>
</td>
`;
};

/**
Expand Down Expand Up @@ -33952,7 +33953,7 @@ const templateBuilder = async (contributors, prevContributors, type) => {
const useUsername = (0,core.getBooleanInput)('use_username');
const columns = Number((0,core.getInput)('columns_per_row').trim());

let contributors_content = `<!-- readme:${type}-start -->\n<table>\n<tbody>\t\n`;
let contributors_content = `<!-- readme:${type}-start -->\n<table>\n\t<tbody>\n`;

contributors = stripDuplicates(contributors, 'login');

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions src/utils/templateBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { htmlEncoding } from './htmlEncoding';

export const getTemplate = (userID, imageSize, name, avatarUrl) => {
return `
<td align="center">
<a href="https://github.com/${userID}">
<img src="${avatarUrl}" width="${imageSize};" alt="${userID}"/>
<br />
<sub><b>${name ? name : userID}</b></sub>
</a>
</td>`;
<td align="center">
<a href="https://github.com/${userID}">
<img src="${avatarUrl}" width="${imageSize};" alt="${userID}"/>
<br />
<sub><b>${name ? name : userID}</b></sub>
</a>
</td>
`;
};

/**
Expand Down Expand Up @@ -63,7 +64,7 @@ const templateBuilder = async (contributors, prevContributors, type) => {
const useUsername = getBooleanInput('use_username');
const columns = Number(getInput('columns_per_row').trim());

let contributors_content = `<!-- readme:${type}-start -->\n<table>\n<tbody>\t\n`;
let contributors_content = `<!-- readme:${type}-start -->\n<table>\n\t<tbody>\n`;

contributors = stripDuplicates(contributors, 'login');

Expand Down

0 comments on commit d560e9d

Please sign in to comment.