title: UITextView control line breaks
body: <p>I have a UITextView with items looking like this:</p>
  
  <pre><code>artist1 - song name1, artist2 - song name 2,
  artist3 - song name3, etc.
  </code></pre>
  
  <p>I only want to disallow line breaks except between artists (after comma, before next artist), so this would be invalid:</p>
  
  <pre><code>artist 1 - song name1, artist 2 - // &lt;- invalid break
  song name 2.
  </code></pre>
  
  <p>I have tried two approaches for accomplishing this: Firstly, I put things in a webview, making this trivial to solve. Unfortunately, that is not possible for a couple of other reasons.</p>
  
  <p>Secondly, I added _ where there are white spaces and hid them, like this:</p>
  
  <pre><code>artist_1_-_song_name1, artist_2_-_song_name_2, etc // &lt;- setting colour of _ to invisible.
  </code></pre>
  
  <p>This almost worked, but now it breaks at the hyphen, like this:</p>
  
  <pre><code>artist_1_-
  song_name1
  </code></pre>
  
  <p>I'm firstly looking for a good way to solve this. If that doesn't work, I would settle for a Unicode Char that looks like a dash but doesn't break (the U+2015 horizontal bar is too long)</p>
  
  <p>Edit: Just found out about about Unicode Character 'NON-BREAKING HYPHEN' (U+2011), so while the problem is technically solved, I'm  still looking for a less hackish way to do it though.</p>