Skip to content

Commit

Permalink
Merge pull request #37 from zanerock/work-liquid-labs/wrap-text-plus/36
Browse files Browse the repository at this point in the history
Don't remove trailing newline
  • Loading branch information
zanerock committed Apr 1, 2024
2 parents 9578b13 + 9e34920 commit b3fa3df
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/wrap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ const wrap = (text, {
})
}

// TODO: not sure how, but we're getting extraneous newlines at the end of some lines; discovered while working with
// 'command-line-help'
while (lines[lines.length - 1].trim() === '') {
lines.pop()
}

return lines.join('\n')
}

Expand Down

0 comments on commit b3fa3df

Please sign in to comment.