Trim highlights for consistency and to fix a bug where paragraph ends look different.

This commit is contained in:
Samuel Clay 2020-07-13 17:33:42 -04:00
parent d94d533631
commit 0e894954e6

View file

@ -737,7 +737,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
selection = document.selection.createRange();
text = document.selection.createRange().text;
}
this.serialized_highlight = text;
this.serialized_highlight = _.string.trim(text);
// console.log(['mouseup_check_selection 1', this.serialized_highlight]);
if (this.tooltip && this.tooltip.tooltips && this.tooltip.tooltips.length) {