It looks like we can simply remove the last line break, if there is one. If you intentionally added a line break at the end, there will be two. I update the tests to cover this. I think we are good for check-in: https://treeherder.mozilla.org/jobs?repo=try-comm-central&collapsedPushes=1128357%2C1128350%2C1128348%2C1128024%2C1128395%2C1128394&revision=a3e5d92893271dd4c811a307e86d237cc05c6c79
Bug 1792551 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It looks like we can simply remove the last line break, if there is one. If you intentionally added a line break at the end, there will be two. I update the tests to cover this. https://hg.mozilla.org/try-comm-central/rev/6ad7ee025f9f6f6af5a73b180521a7a3c01fbd1c#l1.42 I think we are good for check-in: https://treeherder.mozilla.org/jobs?repo=try-comm-central&collapsedPushes=1128357%2C1128350%2C1128348%2C1128024%2C1128395%2C1128394&revision=a3e5d92893271dd4c811a307e86d237cc05c6c79