Browse Source

post-filter.js: prevent extra space characters

prevent extra spaces in comment caused by joining strings with leading
or trailing space.
pull/40/head
marktaiwan 9 years ago
committed by czaks
parent
commit
59ee8a990f
  1. 2
      js/post-filter.js

2
js/post-filter.js

@ -425,7 +425,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
array = $post.find('.body').contents().filter(function () {if ($(this).text() !== '') return true;}).toArray();
array = $.map(array, function (ele) {
return $(ele).text();
return $(ele).text().trim();
});
comment = array.join(' ');

Loading…
Cancel
Save