Skip to content

Commit

Permalink
馃Ч chore: improve spacing of badge code outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
inttter committed Apr 5, 2024
1 parent 53bdc4e commit 0b156c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ program
}

const htmlBadge = `<a href="${escapeHtml(links[index])}"><img alt="${escapeHtml(badgeAlt)}" src="${badgeLink}${styleOption}"></a>`;
console.log(chalk.hex("#FFBF00")(htmlBadge));
console.log(chalk.hex("#FFBF00")(`${htmlBadge}\n`));
} else {
consola.error(c.red("Could not extract badge link or alt text."));
}
Expand All @@ -165,7 +165,7 @@ program
const link = links[index] ? escapeHtml(links[index]) : "#"; // uses "#" if link is not provided

const tsxBadge = `<a href="${link}"><img src="${badgeLink}${styleOption}" alt="${badgeAlt}" /></a>`;
console.log(chalk.hex("#FFBF00").bold(tsxBadge));
console.log(chalk.hex("#FFBF00").bold(`${tsxBadge}\n`));
} else {
let badgeStyle = "flat"; // flat is the default style if one is not specified
if (options.style) {
Expand All @@ -190,7 +190,7 @@ program

const badgeMarkdown = `[${badgeAlt}](${badgeLink}${styleOption})](${link})`;

console.log(chalk.hex("#FFBF00").bold(badgeMarkdown));
console.log(chalk.hex("#FFBF00").bold(`${badgeMarkdown}\n`));
}
}
}
Expand Down

0 comments on commit 0b156c6

Please sign in to comment.