Index: handlers/views_handler_field.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/handlers/views_handler_field.inc,v
retrieving revision 1.14.2.47
diff -u -p -r1.14.2.47 views_handler_field.inc
--- handlers/views_handler_field.inc    4 Dec 2010 00:15:13 -0000       1.14.2.47
+++ handlers/views_handler_field.inc    7 Dec 2010 09:56:36 -0000
@@ -298,6 +298,7 @@ class views_handler_field extends views_
         'suffix' => array('default' => '', 'translatable' => TRUE),
         'target' => array('default' => '', 'translatable' => TRUE),
         'trim' => array('default' => FALSE),
+        'nl2br' => array('default' => FALSE),
         'max_length' => array('default' => ''),
         'word_boundary' => array('default' => TRUE),
         'ellipsis' => array('default' => TRUE),
@@ -623,6 +624,14 @@ If you would like to have the characters
         '#default_value' => $this->options['alter']['strip_tags'],
         '#process' => array('views_process_dependency'),
       );
+
+      $form['alter']['nl2br'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Convert newlines to HTML &lt;br&gt; tags'),
+        '#description' => t('If checked, all newlines chars (e.g. \n) are converted into HTML &lt;br&gt; tags. In other words nl2br() is applied'),
+        '#default_value' => $this->options['alter']['nl2br'],
+        '#process' => array('views_process_dependency'),
+      );
     }
 
     // Use prefix and suffix to fake a fieldset because we use #tree.
@@ -762,6 +771,10 @@ If you would like to have the characters
       $value = $this->render_trim_text($alter, $value);
     }
 
+    if (!empty($alter['nl2br'])) {
+      $value = nl2br($value);
+    }
+
     if (!empty($alter['make_link']) && !empty($alter['path'])) {
       if (!isset($tokens)) {
        $tokens = $this->get_render_tokens($alter);
