[Debian-l10n-commits] r1024 - /ddtss/trunk/ddtss-cgi

kleptog-guest at users.alioth.debian.org kleptog-guest at users.alioth.debian.org
Sun Apr 13 16:08:55 UTC 2008


Author: kleptog-guest
Date: Sun Apr 13 16:08:55 2008
New Revision: 1024

URL: http://svn.debian.org/wsvn/?sc=1&rev=1024
Log:
Handle possibility of embedded newline/linefeed.

Modified:
    ddtss/trunk/ddtss-cgi

Modified: ddtss/trunk/ddtss-cgi
URL: http://svn.debian.org/wsvn/ddtss/trunk/ddtss-cgi?rev=1024&op=diff
==============================================================================
--- ddtss/trunk/ddtss-cgi (original)
+++ ddtss/trunk/ddtss-cgi Sun Apr 13 16:08:55 2008
@@ -719,6 +719,7 @@
   
   $short =~ s/^\s+//;
   $short =~ s/\s+$//;
+  $short =~ s/\s+/ /g;
   $long =~ s/\s+$//;   # Trailing newlines
   $long =~ s/\r\n?/\n/g;   # Fix line endings
   $long =~ s/^[ \t]*$/./mg;  # Don't use \s because that matches \n




More information about the Debian-l10n-commits mailing list