We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb00e3 commit 7e1aa11Copy full SHA for 7e1aa11
src/index.js
@@ -37,9 +37,12 @@ module.exports = {
37
* @param {string} report
38
*/
39
function generatePostrunMessage(issueCount, report) {
40
+ // Only print a line between the report and the summary
41
+ // if the report has any contents.
42
+ const spacer = report.length > 0 ? '\n' : ''
43
const humanReadableCount = issueCount === 0 ? 'No' : issueCount
44
const summary = `${humanReadableCount} accessibility violations found! ${
45
issueCount > 0 ? 'Check the logs above for more information.' : ''
46
}`
- return report + '\n' + pico.magenta(summary)
47
+ return report + spacer + pico.magenta(summary)
48
}
0 commit comments