From 2c5bd1734a367b5f50d787cd9d23581a7ca267d7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 4 Feb 2009 13:54:31 +0000 Subject: [PATCH] =?utf8?q?Den=20Query-Parser=20so=20angepasst,=20dass=20be?= =?utf8?q?i=20Queries,=20die=20sich=20=C3=BCber=20mehrere=20Zeilen=20erstr?= =?utf8?q?ecken,=20am=20Ende=20jeder=20Zeile=20ein=20Whitespace=20eingef?= =?utf8?q?=C3=BCgt=20wird,=20damit=20keine=20W=C3=B6rter=20direkt=20aneina?= =?utf8?q?ndergeh=C3=A4ngt=20werden=20(Newlines=20werden=20vorher=20abgesc?= =?utf8?q?hnitten).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/User.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SL/User.pm b/SL/User.pm index d95a0674f..a213f622e 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -553,6 +553,12 @@ sub process_query { $query .= $char; } } + + # Insert a space at the end of each line so that queries split + # over multiple lines work properly. + if ($query ne '') { + $query .= @quote_chars ? "\n" : ' '; + } } if (ref($version_or_control) eq "HASH") { -- 2.20.1