From e00646889e36fb7ab9b11f2a36386c577dc03938 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Tue, 6 Jul 2010 17:09:43 +0000
Subject: [PATCH] Trim keys to allow clean mapping.

---
 plugins/FeedsCSVParser.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc
index 4d3be593..6b0ae31c 100644
--- a/plugins/FeedsCSVParser.inc
+++ b/plugins/FeedsCSVParser.inc
@@ -26,7 +26,7 @@ class FeedsCSVParser extends FeedsParser {
     // @todo Push this functionality into ParserCSV.
     $header = array_shift($rows);
     foreach ($header as $i => $title) {
-      $header[$i] = drupal_strtolower($title); // Use lower case only.
+      $header[$i] = trim(drupal_strtolower($title)); // Use lower case only.
     }
     $result_rows = array();
     foreach ($rows as $i => $row) {
-- 
GitLab