<commit_before>//
// textEditView
// Modify text based on a textarea
//

import ItemView from 'base/item-view';

export default ItemView.extend({
  template: 'editTextView',

  tagName: 'textarea',

  className: 'gistbook-textarea',

  // Get the value of the element
  value() {
    return this.el.value;
  }
});<commit_msg>Remove new lines from text areas on save.<commit_after>//
// textEditView
// Modify text based on a textarea
//

import ItemView from 'base/item-view';

export default ItemView.extend({
  template: 'editTextView',

  tagName: 'textarea',

  className: 'gistbook-textarea',

  // Get the value of the element,
  // stripping line breaks from the
  // start and end
  value() {
    return this.el.value.replace(/^\s+|\s+$/g, '');
  }
});
{'fraction_non_alphanumeric': 0.14342105263157895, 'fraction_numerical': 0.0, 'mean_word_length': 3.2513966480446927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3749274', 'n_tokens_mistral': 254, 'n_tokens_neox': 241, 'n_words': 75}