Skip to content

Commit

Permalink
Fix newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent 52f35a4 commit ef5d93e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/report/reporters/histogram/abscissa.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const getAbscissa = function ({
const paddedMax = padMaxStat(max)
const bottomLine = separatorColor(getBottomLine(contentWidth, medianIndex))
const label = getLabel(contentWidth, median, medianIndex)
return `${combinationTitles}${paddedMin}${bottomLine}${paddedMax}\n${titlesSpace}${minSpace}${label}`
return `${combinationTitles}${paddedMin}${bottomLine}${paddedMax}\n${titlesSpace}${minSpace}${label}\n`
}

const getBottomLine = function (contentWidth, medianIndex) {
Expand Down
2 changes: 1 addition & 1 deletion src/report/reporters/histogram/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const getContent = function ({
min,
max,
})
return `${rows}\n${abscissa}`
return `${rows}${abscissa}`
}

// Compute the position of the median tick on the screen.
Expand Down
4 changes: 2 additions & 2 deletions src/report/reporters/histogram/rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const getHistogramRows = function ({
height,
mini,
}),
).join('\n')
).join('')
}

// Computes the terminal height of each column for reporting.
Expand Down Expand Up @@ -106,7 +106,7 @@ const getHistogramRow = function ({
const row = columns
.map(getHistogramCell.bind(undefined, inverseIndex))
.join('')
return `${titlesSpace}${minSpace}${row}`
return `${titlesSpace}${minSpace}${row}\n`
}

// Retrieve the character to display for a specific row and column
Expand Down

0 comments on commit ef5d93e

Please sign in to comment.