Index: l10n_community/l10n_community.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.8
diff -u -p -r1.1.2.23.2.8 l10n_community.module
--- l10n_community/l10n_community.module	26 Oct 2008 14:54:57 -0000	1.1.2.23.2.8
+++ l10n_community/l10n_community.module	26 Oct 2008 15:18:27 -0000
@@ -766,8 +766,7 @@ function l10n_community_target_save($sid
  */
 function l10n_community_trim($translation, $source) {
   $matches = array();
-  $chars = '\n\s\r\t';
-  preg_match("/^([$chars]*).*[^$chars]([$chars]*)\$/", $source, $matches);
+  preg_match("/^(\s*).*\S(\s*)\$/s", $source, $matches);
   return $matches[1] . trim($translation) . $matches[2];
 }
 
