title: How to handle line-breaks in HTML forms?
body: <p>I have a <code>form</code> with a <code>textarea</code> and need to submit multiple lines of input to the <code>textarea</code>.</p>
  
  <p>I use :</p>
  
  <pre><code>rows = [('a','b'), ('c','d')]
  data_set = [ '%s\n' % '|'.join(row) for row in rows ]  # Note : ADDED '\n'
  data_dump = ''.join(data_set)
  
  from mechanize import Browser
  br = Browser()
  br.open('http://example.com/page.html')
  br.select_form(nr=1)
  br.form['my_text_area']=data_dump
  br.submit()
  </code></pre>
  
  <p>Problem:</p>
  
  <ul>
  <li>Webserver is not able to see the input as multiple lines.</li>
  <li>ADDED <code>\n</code> is not working for simulating line breaks in the inputs.</li>
  </ul>
  
  <p><strong>What am I doing wrong ?</strong></p>
  
  <p>Feel free to ask for more info if I have missed something !</p>
  
  <p><strong>Update</strong></p>
  
  <p>I also tried <code>\n\r</code> in place of <code>\n</code>, but the problem persists.</p>