diff --git l10n_community/l10n_community.module l10n_community/l10n_community.module
index b71f877..b25b746 100644
--- l10n_community/l10n_community.module
+++ l10n_community/l10n_community.module
@@ -557,6 +557,9 @@ function l10n_community_get_contexts() {
  */
 function l10n_community_trim($translation, $source) {
   if (is_string($translation) && is_string($source)) {
+    // Convert line break from CR or CRLF to LF.
+    $translation = str_replace(array("\r\n", "\r"), "\n", $translation);
+    
     $matches = array();
     preg_match("/^(\s*).*\S(\s*)\$/s", $source, $matches);
     return $matches[1] . trim($translation) . $matches[2];
