From 5b5ed46815b48590d96ee0a2ec1e6b39ca9c413d Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Sat, 31 Dec 2011 10:21:20 -0500 Subject: [PATCH] Fix export of multiline texts --- bin/exportgettext.sh | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/exportgettext.sh b/bin/exportgettext.sh index b1649ef..67fa7ad 100755 --- a/bin/exportgettext.sh +++ b/bin/exportgettext.sh @@ -226,8 +226,9 @@ { $out = ""; $lines = explode("\n", wordwrap(stripslashes($str))); - foreach ($lines as $line) - $out .= '"' . addcslashes($line, '"') . "\"\n"; + $last = count($lines) - 1; + foreach ($lines as $i => $line) + $out .= '"' . addcslashes($line, '"') . ($i < $last ? ' ' : '') . "\"\n"; return rtrim($out); } -- Gitblit v1.9.1