Index: l10n_community/extractor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/extractor.inc,v
retrieving revision 1.1.2.13.2.6
diff -u -p -r1.1.2.13.2.6 extractor.inc
--- l10n_community/extractor.inc	19 Sep 2009 09:19:17 -0000	1.1.2.13.2.6
+++ l10n_community/extractor.inc	17 Oct 2009 10:23:32 -0000
@@ -179,6 +179,15 @@ function l10n_community_save_file($revis
 function l10n_community_save_string($value = NULL, $context = NULL, $file = NULL, $line = 0, $string_type = 2 /*POTX_STRING_RUNTIME*/) {
   static $files = array();
 
+  // TODO: Check potx to find out if the value is already
+  //       trimmed there and remove this if so.
+  $value = trim($value);
+  
+  // Don't store empty source strings. Simply return if it's empty.
+  if (empty($value)) {
+    return;
+  }
+  
   // Strip all slashes from string.
   $value = stripcslashes($value);
 
